Re: [PATCH v4 1/6] mm: memcontrol: introduce mem_cgroup_ino() and mem_cgroup_get_from_ino()

From: Muchun Song
Date: Wed May 25 2022 - 21:53:59 EST


On Wed, May 25, 2022 at 01:25:55PM -0700, Roman Gushchin wrote:
> Shrinker debugfs requires a way to represent memory cgroups without
> using full paths, both for displaying information and getting input
> from a user.
>
> Cgroup inode number is a perfect way, already used by bpf.
>
> This commit adds a couple of helper functions which will be used
> to handle memcg-aware shrinkers.
>
> Signed-off-by: Roman Gushchin <roman.gushchin@xxxxxxxxx>

Acked-by: Muchun Song <songmuchun@xxxxxxxxxxxxx>

Thanks.