Re: [PATCH v3 08/11] mm: memcontrol: constify the memcg and lruvec stat readers
From: Muchun Song
Date: Tue Sep 15 2026 - 22:36:08 EST
> On Sep 16, 2026, at 07:20, Tal Zussman <tz2294@xxxxxxxxxxxx> wrote:
>
> The memcg_page_state(), memcg_events(), and lruvec_page_state()
> families only read counters. Constify them.
>
> Use container_of_const() in the lruvec_page_state() family while at it,
> so the const isn't silently cast away.
>
> Signed-off-by: Tal Zussman <tz2294@xxxxxxxxxxxx>
Acked-by: Muchun Song <muchun.song@xxxxxxxxx>
Thanks.