]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm/oom_kill: cleanup the "kill sharing same memory" loop
authorOleg Nesterov <oleg@redhat.com>
Wed, 21 Oct 2015 22:03:11 +0000 (09:03 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 21 Oct 2015 22:03:11 +0000 (09:03 +1100)
commit32e6a5f0cf69bda06034670afc6a73866a0a664c
treee91f8c1cc59bff61f6e49447e71c01594b8ff02e
parent4a30624866c2e522d9dd2730e1e57f9850e28612
mm/oom_kill: cleanup the "kill sharing same memory" loop

Purely cosmetic, but the complex "if" condition looks annoying to me.
Especially because it is not consistent with OOM_SCORE_ADJ_MIN check
which adds another if/continue.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Acked-by: David Rientjes <rientjes@google.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Acked-by: Hillf Danton <hillf.zj@alibaba-inc.com>
Cc: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Cc: Kyle Walker <kwalker@redhat.com>
Cc: Stanislav Kozina <skozina@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/oom_kill.c