mm/oom_kill: remove unneeded is_memcg_oom check
authorMiaohe Lin <linmiaohe@huawei.com>
Mon, 28 Feb 2022 23:01:25 +0000 (10:01 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 28 Feb 2022 23:01:25 +0000 (10:01 +1100)
commitbf5c012b79fb5265ef81c15922d82317069f1b1f
tree3e74b8aa6632b10a31d9785720ea1c94bdf3aac6
parent978d1ed6ee37b70e602aba7101ef7199471ccc94
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 <linmiaohe@huawei.com>
Acked-by: David Rientjes <rientjes@google.com>
Cc: Michal Hocko <mhocko@suse.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
mm/oom_kill.c