diff options
Diffstat (limited to 'fs/proc/array.c')
-rw-r--r-- | fs/proc/array.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/fs/proc/array.c b/fs/proc/array.c index 7e9f3b65f25b..5540e9575c6d 100644 --- a/fs/proc/array.c +++ b/fs/proc/array.c | |||
@@ -563,7 +563,8 @@ int proc_tgid_stat(struct seq_file *m, struct pid_namespace *ns, | |||
563 | return do_task_stat(m, ns, pid, task, 1); | 563 | return do_task_stat(m, ns, pid, task, 1); |
564 | } | 564 | } |
565 | 565 | ||
566 | int proc_pid_statm(struct task_struct *task, char *buffer) | 566 | int proc_pid_statm(struct seq_file *m, struct pid_namespace *ns, |
567 | struct pid *pid, struct task_struct *task) | ||
567 | { | 568 | { |
568 | int size = 0, resident = 0, shared = 0, text = 0, lib = 0, data = 0; | 569 | int size = 0, resident = 0, shared = 0, text = 0, lib = 0, data = 0; |
569 | struct mm_struct *mm = get_task_mm(task); | 570 | struct mm_struct *mm = get_task_mm(task); |
@@ -572,7 +573,8 @@ int proc_pid_statm(struct task_struct *task, char *buffer) | |||
572 | size = task_statm(mm, &shared, &text, &data, &resident); | 573 | size = task_statm(mm, &shared, &text, &data, &resident); |
573 | mmput(mm); | 574 | mmput(mm); |
574 | } | 575 | } |
576 | seq_printf(m, "%d %d %d %d %d %d %d\n", | ||
577 | size, resident, shared, text, lib, data, 0); | ||
575 | 578 | ||
576 | return sprintf(buffer, "%d %d %d %d %d %d %d\n", | 579 | return 0; |
577 | size, resident, shared, text, lib, data, 0); | ||
578 | } | 580 | } |