mm,oom: remove unused argument from oom_scan_process_thread().
Subsystems (3)
[email protected]
maintainerPATCH 75/126 mm,oom: remove unused argument from oom_scan_process_thread().
From: Tetsuo Handa <[email protected]>
Subject: 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.jp open here
Signed-off-by Tetsuo Handa <[email protected]>
Acked-by Michal Hocko <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
include/linux/oom.h | 2 +- mm/memcontrol.c | 2 +- mm/oom_kill.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-)
include/linux/oom.h renamed from include/linux/oom.h~mmoom-remove-unused-argument-from-oom_scan_process_thread +1 -1
@@ -92,7 +92,7 @@ extern void check_panic_on_oom(struct oo enum oom_constraint constraint);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);
mm/memcontrol.c renamed from mm/memcontrol.c~mmoom-remove-unused-argument-from-oom_scan_process_thread +1 -1
@@ -1290,7 +1290,7 @@ static bool mem_cgroup_out_of_memory(strcss_task_iter_start (&iter->css, &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 :if (chosen)put_task_struct (chosen);
mm/oom_kill.c renamed from mm/oom_kill.c~mmoom-remove-unused-argument-from-oom_scan_process_thread +2 -2
@@ -274,7 +274,7 @@ static enum oom_constraint constrained_a#endif 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))return OOM_SCAN_CONTINUE ;
@@ -311,7 +311,7 @@ static struct task_struct *select_bad_prfor_each_process (p) {unsigned int points; -switch (oom_scan_process_thread (oc, p, totalpages)) { +switch (oom_scan_process_thread (oc, p)) {case OOM_SCAN_SELECT : chosen = p; chosen_points =ULONG_MAX ;
_