Commit 7aaf7727 authored by Roman Gushchin's avatar Roman Gushchin Committed by Linus Torvalds

mm: don't show nr_indirectly_reclaimable in /proc/vmstat

Don't show nr_indirectly_reclaimable in /proc/vmstat, because there is
no need to export this vm counter to userspace, and some changes are
expected in reclaimable object accounting, which can alter this counter.

Link: default avatarRoman Gushchin <>
Acked-by: default avatarVlastimil Babka <>
Reviewed-by: default avatarAndrew Morton <>
Cc: Matthew Wilcox <>
Cc: Alexander Viro <>
Cc: Michal Hocko <>
Cc: Johannes Weiner <>
Cc: David Rientjes <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 27227c73
......@@ -1161,7 +1161,7 @@ const char * const vmstat_text[] = {
"", /* nr_indirectly_reclaimable */
/* enum writeback_stat_item counters */
......@@ -1740,6 +1740,10 @@ static int vmstat_show(struct seq_file *m, void *arg)
unsigned long *l = arg;
unsigned long off = l - (unsigned long *)m->private;
/* Skip hidden vmstat items. */
if (*vmstat_text[off] == '\0')
return 0;
seq_puts(m, vmstat_text[off]);
seq_put_decimal_ull(m, " ", *l);
seq_putc(m, '\n');
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment