aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTetsuo Handa <[email protected]>2019-07-11 21:00:34 -0700
committerLinus Torvalds <[email protected]>2019-07-12 11:05:47 -0700
commit2c207985f354dfb549e5a543102a3e084eea81f6 (patch)
treeb9055f531d944d0d506b2743bd9f70c6819187ca
parentac311a14c682dcd8a120a6244d0542ec654e3d93 (diff)
mm/oom_kill.c: remove redundant OOM score normalization in select_bad_process()
Since commit bbbe48029720 ("mm, oom: remove 'prefer children over parent' heuristic") removed the "%s: Kill process %d (%s) score %u or sacrifice child\n" line, oc->chosen_points is no longer used after select_bad_process(). Link: http://lkml.kernel.org/r/1560853435-15575-1-git-send-email-penguin-kernel@I-love.SAKURA.ne.jp Signed-off-by: Tetsuo Handa <[email protected]> Acked-by: Michal Hocko <[email protected]> Cc: Shakeel Butt <[email protected]> Cc: Roman Gushchin <[email protected]> Cc: Johannes Weiner <[email protected]> Cc: David Rientjes <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
-rw-r--r--mm/oom_kill.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/mm/oom_kill.c b/mm/oom_kill.c
index d1c9c4e66d59..eda2e2a0bdc6 100644
--- a/mm/oom_kill.c
+++ b/mm/oom_kill.c
@@ -375,8 +375,6 @@ static void select_bad_process(struct oom_control *oc)
break;
rcu_read_unlock();
}
-
- oc->chosen_points = oc->chosen_points * 1000 / oc->totalpages;
}
static int dump_task(struct task_struct *p, void *arg)