Re: [PATCH bpf-next v3 06/17] mm: define mem_cgroup_get_from_ino() outside of CONFIG_SHRINKER_DEBUG

From: teawater

Date: Thu Mar 26 2026 - 04:23:37 EST


>
> mem_cgroup_get_from_ino() can be reused by the BPF OOM implementation,
> but currently depends on CONFIG_SHRINKER_DEBUG. Remove this dependency.
>
> Signed-off-by: Roman Gushchin <roman.gushchin@xxxxxxxxx>
> Acked-by: Michal Hocko <mhocko@xxxxxxxx>

After dropping this commit, I applied the remaining patches to the
current bpf-next and ran the selftests.
Everything passed, though the following warning was observed during
the build:
make -j 30 -C tools/testing/selftests/bpf
...
GEN /home/teawater/kernel/linux-ebpf/tools/testing/selftests/bpf/tools/build/libbpf/libbpf.pc
Warning: Kernel ABI header at 'tools/include/uapi/linux/bpf.h' differs from latest version at 'include/uapi/linux/bpf.h'
CC /home/teawater/kernel/linux-ebpf/tools/testing/selftests/bpf/tools/build/libbpf/sharedobjs/libbpf.o

Best,
Hui

> ---
> include/linux/memcontrol.h | 4 ++--
> mm/memcontrol.c | 2 --
> 2 files changed, 2 insertions(+), 4 deletions(-)
>
> diff --git a/include/linux/memcontrol.h b/include/linux/memcontrol.h
> index 229ac9835adb..f3b8c71870d8 100644
> --- a/include/linux/memcontrol.h
> +++ b/include/linux/memcontrol.h
> @@ -833,9 +833,9 @@ static inline unsigned long mem_cgroup_ino(struct mem_cgroup *memcg)
> {
> return memcg ? cgroup_ino(memcg->css.cgroup) : 0;
> }