|
@@ -1161,7 +1161,7 @@ const char * const vmstat_text[] = {
|
|
|
"nr_vmscan_immediate_reclaim",
|
|
|
"nr_dirtied",
|
|
|
"nr_written",
|
|
|
- "nr_indirectly_reclaimable",
|
|
|
+ "", /* nr_indirectly_reclaimable */
|
|
|
|
|
|
/* enum writeback_stat_item counters */
|
|
|
"nr_dirty_threshold",
|
|
@@ -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');
|