Re: [PATCH v3 01/11] mm: memcontrol: take a const folio in folio_memcg() and friends

From: Muchun Song

Date: Tue Sep 15 2026 - 22:28:34 EST




> On Sep 16, 2026, at 07:20, Tal Zussman <tz2294@xxxxxxxxxxxx> wrote:
>
> The folio_memcg() family only reads from the folio, and everything it
> calls already takes a const folio. Constify it, along with the page
> wrappers built on top of it and get_obj_cgroup_from_folio(), which only
> reads the folio's objcg.
>
> Signed-off-by: Tal Zussman <tz2294@xxxxxxxxxxxx>

Reviewed-by: Muchun Song <muchun.song@xxxxxxxxx>

Thanks.