aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorChristoph Lameter <clameter@sgi.com>2006-06-30 04:55:40 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-06-30 14:25:35 -0400
commitce866b34ae1b7f1ce60234cf65855886ac7e7d30 (patch)
treee9a2664f0abc5221b9a92e1417d8e02b94a634c4 /mm
parentb1e7a8fd854d2f895730e82137400012b509650e (diff)
[PATCH] zoned vm counters: conversion of nr_writeback to per zone counter
Conversion of nr_writeback to per zone counter. This removes the last page_state counter from arch/i386/mm/pgtable.c so we drop the page_state from there. [akpm@osdl.org: bugfix] Signed-off-by: Christoph Lameter <clameter@sgi.com> Cc: Trond Myklebust <trond.myklebust@fys.uio.no> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'mm')
-rw-r--r--mm/page-writeback.c2
-rw-r--r--mm/page_alloc.c2
-rw-r--r--mm/vmstat.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/mm/page-writeback.c b/mm/page-writeback.c
index da8547830098..3cfdff4b1985 100644
--- a/mm/page-writeback.c
+++ b/mm/page-writeback.c
@@ -113,7 +113,7 @@ static void get_writeback_state(struct writeback_state *wbs)
113 wbs->nr_unstable = read_page_state(nr_unstable); 113 wbs->nr_unstable = read_page_state(nr_unstable);
114 wbs->nr_mapped = global_page_state(NR_FILE_MAPPED) + 114 wbs->nr_mapped = global_page_state(NR_FILE_MAPPED) +
115 global_page_state(NR_ANON_PAGES); 115 global_page_state(NR_ANON_PAGES);
116 wbs->nr_writeback = read_page_state(nr_writeback); 116 wbs->nr_writeback = global_page_state(NR_WRITEBACK);
117} 117}
118 118
119/* 119/*
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index c2b9aa4acc46..a12e894a8bca 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -1315,7 +1315,7 @@ void show_free_areas(void)
1315 active, 1315 active,
1316 inactive, 1316 inactive,
1317 global_page_state(NR_FILE_DIRTY), 1317 global_page_state(NR_FILE_DIRTY),
1318 ps.nr_writeback, 1318 global_page_state(NR_WRITEBACK),
1319 ps.nr_unstable, 1319 ps.nr_unstable,
1320 nr_free_pages(), 1320 nr_free_pages(),
1321 global_page_state(NR_SLAB), 1321 global_page_state(NR_SLAB),
diff --git a/mm/vmstat.c b/mm/vmstat.c
index 1982fb533a40..e84c7e520a1d 100644
--- a/mm/vmstat.c
+++ b/mm/vmstat.c
@@ -401,9 +401,9 @@ static char *vmstat_text[] = {
401 "nr_slab", 401 "nr_slab",
402 "nr_page_table_pages", 402 "nr_page_table_pages",
403 "nr_dirty", 403 "nr_dirty",
404 "nr_writeback",
404 405
405 /* Page state */ 406 /* Page state */
406 "nr_writeback",
407 "nr_unstable", 407 "nr_unstable",
408 408
409 "pgpgin", 409 "pgpgin",