Re: [PATCH] mm: memcontrol: rename mem_cgroup_from_slab_obj()
From: Vlastimil Babka
Date: Thu Dec 11 2025 - 04:36:15 EST
On 12/10/25 16:43, Johannes Weiner wrote:
> In addition to slab objects, this function is used for resolving
> non-slab kernel pointers. This has caused confusion in recent
> refactoring work. Rename it to mem_cgroup_from_virt(), sticking with
> terminology established by the virt_to_<foo>() converters.
>
> Link: https://lore.kernel.org/linux-mm/20251113161424.GB3465062@xxxxxxxxxxx/
> Signed-off-by: Johannes Weiner <hannes@xxxxxxxxxxx>
Acked-by: Vlastimil Babka <vbabka@xxxxxxx>