Skip to content

Commit 2c20798

Browse files
Tetsuo Handatorvalds
authored andcommitted
mm/oom_kill.c: remove redundant OOM score normalization in select_bad_process()
Since commit bbbe480 ("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]>
1 parent ac311a1 commit 2c20798

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

mm/oom_kill.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,8 +375,6 @@ static void select_bad_process(struct oom_control *oc)
375375
break;
376376
rcu_read_unlock();
377377
}
378-
379-
oc->chosen_points = oc->chosen_points * 1000 / oc->totalpages;
380378
}
381379

382380
static int dump_task(struct task_struct *p, void *arg)

0 commit comments

Comments
 (0)