aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc/base.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/proc/base.c')
-rw-r--r--fs/proc/base.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/proc/base.c b/fs/proc/base.c
index acb7ef80ea4..fc23f62bb0b 100644
--- a/fs/proc/base.c
+++ b/fs/proc/base.c
@@ -428,7 +428,8 @@ static const struct file_operations proc_lstats_operations = {
428#endif 428#endif
429 429
430/* The badness from the OOM killer */ 430/* The badness from the OOM killer */
431unsigned long badness(struct task_struct *p, unsigned long uptime); 431unsigned long badness(struct task_struct *p, struct mem_cgroup *mem,
432 nodemask_t *nodemask, unsigned long uptime);
432static int proc_oom_score(struct task_struct *task, char *buffer) 433static int proc_oom_score(struct task_struct *task, char *buffer)
433{ 434{
434 unsigned long points = 0; 435 unsigned long points = 0;
@@ -437,7 +438,7 @@ static int proc_oom_score(struct task_struct *task, char *buffer)
437 do_posix_clock_monotonic_gettime(&uptime); 438 do_posix_clock_monotonic_gettime(&uptime);
438 read_lock(&tasklist_lock); 439 read_lock(&tasklist_lock);
439 if (pid_alive(task)) 440 if (pid_alive(task))
440 points = badness(task, uptime.tv_sec); 441 points = badness(task, NULL, NULL, uptime.tv_sec);
441 read_unlock(&tasklist_lock); 442 read_unlock(&tasklist_lock);
442 return sprintf(buffer, "%lu\n", points); 443 return sprintf(buffer, "%lu\n", points);
443} 444}