]> git.baikalelectronics.ru Git - kernel.git/commit
mm/oom_kill: remove unneeded is_memcg_oom check
authorMiaohe Lin <linmiaohe@huawei.com>
Tue, 22 Mar 2022 21:46:02 +0000 (14:46 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 22 Mar 2022 22:57:09 +0000 (15:57 -0700)
commite75c45a0c5085a407a5ca06e06f03ce75ae126f2
tree5a085449dbac6585c4f9e77dd7708bfaa9d3ab83
parent199b8db831a12b24551d45bba4194052cf466a1c
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>
Acked-by: Michal Hocko <mhocko@suse.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/oom_kill.c