aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2007-07-06 07:35:34 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-07-06 13:26:50 -0400
commit23c1fb52961bc24bd3a8078eefc49eed533b2b38 (patch)
tree48500a3495dbbf623751bc3b9e884dd25e3c86c3 /mm
parent0da2f0f164f098bb4447c714b552ac1681b2d6e8 (diff)
mm: fixup /proc/vmstat output
Line up the vmstat_text with zone_stat_item enum zone_stat_item { /* First 128 byte cacheline (assuming 64 bit words) */ NR_FREE_PAGES, NR_INACTIVE, NR_ACTIVE, We current have nr_active and nr_inactive reversed. [ "OK with patch, though using initializers canbe handy to prevent such things in future: static const char * const vmstat_text[] = { [NR_FREE_PAGES] = "nr_free_pages", ..." - Alexey ] Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Acked-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r--mm/vmstat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/vmstat.c b/mm/vmstat.c
index 38254297a494..eceaf496210f 100644
--- a/mm/vmstat.c
+++ b/mm/vmstat.c
@@ -477,8 +477,8 @@ const struct seq_operations fragmentation_op = {
477static const char * const vmstat_text[] = { 477static const char * const vmstat_text[] = {
478 /* Zoned VM counters */ 478 /* Zoned VM counters */
479 "nr_free_pages", 479 "nr_free_pages",
480 "nr_active",
481 "nr_inactive", 480 "nr_inactive",
481 "nr_active",
482 "nr_anon_pages", 482 "nr_anon_pages",
483 "nr_mapped", 483 "nr_mapped",
484 "nr_file_pages", 484 "nr_file_pages",