Re: [PATCH] mm: memcg-v1: make mem_cgroup_oom_notify_cb() return void

From: Muchun Song

Date: Mon Jul 13 2026 - 08:36:16 EST




> On Jul 13, 2026, at 17:37, Guopeng Zhang <guopeng.zhang@xxxxxxxxx> wrote:
>
> From: Guopeng Zhang <zhangguopeng@xxxxxxxxxx>
>
> Commit 7d74b06f240f ("memcg: use for_each_mem_cgroup") replaced the
> mem_cgroup_walk_tree() call in mem_cgroup_oom_notify() with
> for_each_mem_cgroup_tree(), but left mem_cgroup_oom_notify_cb() with the
> int return type required by the old callback interface.
>
> The function now has a single direct caller and no failure path. Make it
> return void.
>
> Signed-off-by: Guopeng Zhang <zhangguopeng@xxxxxxxxxx>

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