Messages in this thread | | | From | "T.J. Mercier" <> | Date | Sat, 20 Apr 2024 19:12:05 -0700 | Subject | Re: [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>
| |