Re: [PATCH] mm: memcontrol: rename mem_cgroup_from_slab_obj()
From: Shakeel Butt
Date: Thu Dec 11 2025 - 19:38:31 EST
On Wed, Dec 10, 2025 at 10:43:01AM -0500, 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: Shakeel Butt <shakeel.butt@xxxxxxxxx>