Re: [PATCH] mm/oom_kill: remove unneeded is_memcg_oom check
From: David Rientjes
Date: Thu Feb 24 2022 - 14:23:20 EST
On Thu, 24 Feb 2022, Miaohe Lin wrote:
> oom_cpuset_eligible is always called when !is_memcg_oom. Remove this
> unnecessary check.
>
> Signed-off-by: Miaohe Lin <linmiaohe@xxxxxxxxxx>
Acked-by: David Rientjes <rientjes@xxxxxxxxxx>
This keeps oom_cpuset_eligible() only in the nodemask eligibility business
and memcg criteria remains isolated in its own function.