aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'mm/vmstat.c')
-rw-r--r--mm/vmstat.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/mm/vmstat.c b/mm/vmstat.c
index 83a003bc3cae..8640a185dfc6 100644
--- a/mm/vmstat.c
+++ b/mm/vmstat.c
@@ -738,6 +738,7 @@ const char * const vmstat_text[] = {
738 "nr_slab_unreclaimable", 738 "nr_slab_unreclaimable",
739 "nr_page_table_pages", 739 "nr_page_table_pages",
740 "nr_kernel_stack", 740 "nr_kernel_stack",
741 "nr_overhead",
741 "nr_unstable", 742 "nr_unstable",
742 "nr_bounce", 743 "nr_bounce",
743 "nr_vmscan_write", 744 "nr_vmscan_write",
@@ -1093,6 +1094,8 @@ static void pagetypeinfo_showmixedcount_print(struct seq_file *m,
1093 continue; 1094 continue;
1094 1095
1095 page_ext = lookup_page_ext(page); 1096 page_ext = lookup_page_ext(page);
1097 if (unlikely(!page_ext))
1098 continue;
1096 1099
1097 if (!test_bit(PAGE_EXT_OWNER, &page_ext->flags)) 1100 if (!test_bit(PAGE_EXT_OWNER, &page_ext->flags))
1098 continue; 1101 continue;
@@ -1350,7 +1353,9 @@ static int vmstat_show(struct seq_file *m, void *arg)
1350 unsigned long *l = arg; 1353 unsigned long *l = arg;
1351 unsigned long off = l - (unsigned long *)m->private; 1354 unsigned long off = l - (unsigned long *)m->private;
1352 1355
1353 seq_printf(m, "%s %lu\n", vmstat_text[off], *l); 1356 seq_puts(m, vmstat_text[off]);
1357 seq_put_decimal_ull(m, ' ', *l);
1358 seq_putc(m, '\n');
1354 return 0; 1359 return 0;
1355} 1360}
1356 1361