提交 1b2507d1 编写于 作者: T Tetsuo Handa 提交者: Yang Yingliang

mm/oom_kill.c: remove redundant OOM score normalization in select_bad_process()

mainline inclusion
from mainline-v5.3-rc1
commit 2c207985
category: bugfix
bugzilla: 34611
CVE: NA

-------------------------------------------------

Since commit bbbe4802 ("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.jpSigned-off-by: NTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Acked-by: NMichal 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: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: NLiu Shixin <liushixin2@huawei.com>
Reviewed-by: NKefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 4300877c
...@@ -380,8 +380,6 @@ static void select_bad_process(struct oom_control *oc) ...@@ -380,8 +380,6 @@ static void select_bad_process(struct oom_control *oc)
break; break;
rcu_read_unlock(); rcu_read_unlock();
} }
oc->chosen_points = oc->chosen_points * 1000 / oc->totalpages;
} }
/** /**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册