]> git.baikalelectronics.ru Git - kernel.git/commit
mm: fixup /proc/vmstat output
authorPeter Zijlstra <peterz@infradead.org>
Fri, 6 Jul 2007 11:35:34 +0000 (13:35 +0200)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Fri, 6 Jul 2007 17:26:50 +0000 (10:26 -0700)
commit3d7cf389bb5951cca8396596d7e16fa01d83d3c0
tree48500a3495dbbf623751bc3b9e884dd25e3c86c3
parent1bdf174d0f9510e3e2ebb1fe84a588a03113aa7c
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>
mm/vmstat.c