mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 22:21:40 +00:00
mm/oom_kill.c: remove redundant OOM score normalization in select_bad_process()
Since commit bbbe480297
("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 <penguin-kernel@I-love.SAKURA.ne.jp>
Acked-by: Michal Hocko <mhocko@suse.com>
Cc: Shakeel Butt <shakeelb@google.com>
Cc: Roman Gushchin <guro@fb.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
ac311a14c6
commit
2c207985f3
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user