From: Miaohe Lin Date: Tue, 22 Mar 2022 21:46:02 +0000 (-0700) Subject: mm/oom_kill: remove unneeded is_memcg_oom check X-Git-Tag: v6.1-rc5~1778^2~79 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bd8b77d653e84cf1387b8046c61315af8b7513fb;p=platform%2Fkernel%2Flinux-starfive.git mm/oom_kill: remove unneeded is_memcg_oom check oom_cpuset_eligible() is always called when !is_memcg_oom(). Remove this unnecessary check. Link: https://lkml.kernel.org/r/20220224115933.20154-1-linmiaohe@huawei.com Signed-off-by: Miaohe Lin Acked-by: David Rientjes Acked-by: Michal Hocko Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/oom_kill.c b/mm/oom_kill.c index 832fb33..4db425e 100644 --- a/mm/oom_kill.c +++ b/mm/oom_kill.c @@ -93,9 +93,6 @@ static bool oom_cpuset_eligible(struct task_struct *start, bool ret = false; const nodemask_t *mask = oc->nodemask; - if (is_memcg_oom(oc)) - return true; - rcu_read_lock(); for_each_thread(start, tsk) { if (mask) {