lkml.org 
[lkml]   [2024]   [Apr]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH v2] memcg: simple cleanup of stats update functions
On Sat, Apr 20, 2024 at 4:25 PM Shakeel Butt <shakeel.butt@linux.dev> wrote:
>
> mod_memcg_lruvec_state() is never called from outside of memcontrol.c
> and with always irq disabled. So, replace it with the irq disabled
> version and add an assert that irq is disabled in the caller.
>
> Similarly mod_objcg_state() is not called from outside of memcontrol.c,
> so simply make it static and change it's name to __mod_objcg_state().
>
> Signed-off-by: Shakeel Butt <shakeel.butt@linux.dev>
> Acked-by: Johannes Weiner <hannes@cmpxchg.org>

Reviewed-by: T.J. Mercier <tjmercier@google.com>

\
 
 \ /
  Last update: 2024-05-27 17:55    [W:0.061 / U:0.172 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site