Commit fbe84a09 authored by Tetsuo Handa's avatar Tetsuo Handa Committed by Linus Torvalds

mm,oom: remove unused argument from oom_scan_process_thread().

oom_scan_process_thread() does not use totalpages argument.
oom_badness() uses it.

Link: http://lkml.kernel.org/r/1463796041-7889-1-git-send-email-penguin-kernel@I-love.SAKURA.ne.jpSigned-off-by: default avatarTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Acked-by: default avatarMichal Hocko <mhocko@suse.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 3aa9799e
...@@ -92,7 +92,7 @@ extern void check_panic_on_oom(struct oom_control *oc, ...@@ -92,7 +92,7 @@ extern void check_panic_on_oom(struct oom_control *oc,
enum oom_constraint constraint); enum oom_constraint constraint);
extern enum oom_scan_t oom_scan_process_thread(struct oom_control *oc, extern enum oom_scan_t oom_scan_process_thread(struct oom_control *oc,
struct task_struct *task, unsigned long totalpages); struct task_struct *task);
extern bool out_of_memory(struct oom_control *oc); extern bool out_of_memory(struct oom_control *oc);
......
...@@ -1290,7 +1290,7 @@ static bool mem_cgroup_out_of_memory(struct mem_cgroup *memcg, gfp_t gfp_mask, ...@@ -1290,7 +1290,7 @@ static bool mem_cgroup_out_of_memory(struct mem_cgroup *memcg, gfp_t gfp_mask,
css_task_iter_start(&iter->css, &it); css_task_iter_start(&iter->css, &it);
while ((task = css_task_iter_next(&it))) { while ((task = css_task_iter_next(&it))) {
switch (oom_scan_process_thread(&oc, task, totalpages)) { switch (oom_scan_process_thread(&oc, task)) {
case OOM_SCAN_SELECT: case OOM_SCAN_SELECT:
if (chosen) if (chosen)
put_task_struct(chosen); put_task_struct(chosen);
......
...@@ -274,7 +274,7 @@ static enum oom_constraint constrained_alloc(struct oom_control *oc, ...@@ -274,7 +274,7 @@ static enum oom_constraint constrained_alloc(struct oom_control *oc,
#endif #endif
enum oom_scan_t oom_scan_process_thread(struct oom_control *oc, enum oom_scan_t oom_scan_process_thread(struct oom_control *oc,
struct task_struct *task, unsigned long totalpages) struct task_struct *task)
{ {
if (oom_unkillable_task(task, NULL, oc->nodemask)) if (oom_unkillable_task(task, NULL, oc->nodemask))
return OOM_SCAN_CONTINUE; return OOM_SCAN_CONTINUE;
...@@ -311,7 +311,7 @@ static struct task_struct *select_bad_process(struct oom_control *oc, ...@@ -311,7 +311,7 @@ static struct task_struct *select_bad_process(struct oom_control *oc,
for_each_process(p) { for_each_process(p) {
unsigned int points; unsigned int points;
switch (oom_scan_process_thread(oc, p, totalpages)) { switch (oom_scan_process_thread(oc, p)) {
case OOM_SCAN_SELECT: case OOM_SCAN_SELECT:
chosen = p; chosen = p;
chosen_points = ULONG_MAX; chosen_points = ULONG_MAX;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment