Re: [PATCH] mm: memcg-v1: make mem_cgroup_oom_notify_cb() return void
From: SJ Park
Date: Mon Jul 13 2026 - 20:27:49 EST
On Mon, 13 Jul 2026 17:37:37 +0800 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.
Makes sense to me.
>
> Signed-off-by: Guopeng Zhang <zhangguopeng@xxxxxxxxxx>
Reviewed-by: SJ Park <sj@xxxxxxxxxx>
Thanks,
SJ
[...]