diff options
author | KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> | 2012-03-28 17:42:39 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-03-28 20:14:35 -0400 |
commit | 3748b2f15b06ea1861df39d5e9693dcd6e9542b1 (patch) | |
tree | 58c6b212487464bbc51fc40dbb783c8c9b8e699e /fs/proc | |
parent | 529b73fc0a9764050dcc597f4851728e8ff59165 (diff) |
procfs: fix /proc/statm
bda7bad62bc4 ("procfs: speed up /proc/pid/stat, statm") broke /proc/statm
- 'text' is printed twice by mistake.
Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Reported-by: Ulrich Drepper <drepper@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/proc')
-rw-r--r-- | fs/proc/array.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/proc/array.c b/fs/proc/array.c index fbb53c249086..f9bd395b3473 100644 --- a/fs/proc/array.c +++ b/fs/proc/array.c | |||
@@ -550,7 +550,7 @@ int proc_pid_statm(struct seq_file *m, struct pid_namespace *ns, | |||
550 | seq_put_decimal_ull(m, ' ', shared); | 550 | seq_put_decimal_ull(m, ' ', shared); |
551 | seq_put_decimal_ull(m, ' ', text); | 551 | seq_put_decimal_ull(m, ' ', text); |
552 | seq_put_decimal_ull(m, ' ', 0); | 552 | seq_put_decimal_ull(m, ' ', 0); |
553 | seq_put_decimal_ull(m, ' ', text); | 553 | seq_put_decimal_ull(m, ' ', data); |
554 | seq_put_decimal_ull(m, ' ', 0); | 554 | seq_put_decimal_ull(m, ' ', 0); |
555 | seq_putc(m, '\n'); | 555 | seq_putc(m, '\n'); |
556 | 556 | ||