Skip to content

Commit

Permalink
mm/oom_kill.c: remove redundant OOM score normalization in select_bad…
Browse files Browse the repository at this point in the history
…_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]>
  • Loading branch information
Tetsuo Handa authored and torvalds committed Jul 12, 2019
1 parent ac311a1 commit 2c20798
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions mm/oom_kill.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2c20798

Please sign in to comment.