Re: [PATCH v2] memcg: simple cleanup of stats update functions
From: T.J. Mercier
Date: Sat Apr 20 2024 - 22:12:29 EST
On Sat, Apr 20, 2024 at 4:25 PM Shakeel Butt <shakeel.butt@xxxxxxxxx> 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@xxxxxxxxx>
> Acked-by: Johannes Weiner <hannes@xxxxxxxxxxx>
Reviewed-by: T.J. Mercier <tjmercier@xxxxxxxxxx>