aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/base/node.c
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 /drivers/base/node.c
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 'drivers/base/node.c')
-rw-r--r--drivers/base/node.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/base/node.c b/drivers/base/node.c
index 6fed520d00f4..a7b3dcbbdfc9 100644
--- a/drivers/base/node.c
+++ b/drivers/base/node.c
@@ -49,9 +49,6 @@ static ssize_t node_read_meminfo(struct sys_device * dev, char * buf)
49 get_page_state_node(&ps, nid); 49 get_page_state_node(&ps, nid);
50 __get_zone_counts(&active, &inactive, &free, NODE_DATA(nid)); 50 __get_zone_counts(&active, &inactive, &free, NODE_DATA(nid));
51 51
52 /* Check for negative values in these approximate counters */
53 if ((long)ps.nr_writeback < 0)
54 ps.nr_writeback = 0;
55 52
56 n = sprintf(buf, "\n" 53 n = sprintf(buf, "\n"
57 "Node %d MemTotal: %8lu kB\n" 54 "Node %d MemTotal: %8lu kB\n"
@@ -80,7 +77,7 @@ static ssize_t node_read_meminfo(struct sys_device * dev, char * buf)
80 nid, K(i.totalram - i.totalhigh), 77 nid, K(i.totalram - i.totalhigh),
81 nid, K(i.freeram - i.freehigh), 78 nid, K(i.freeram - i.freehigh),
82 nid, K(node_page_state(nid, NR_FILE_DIRTY)), 79 nid, K(node_page_state(nid, NR_FILE_DIRTY)),
83 nid, K(ps.nr_writeback), 80 nid, K(node_page_state(nid, NR_WRITEBACK)),
84 nid, K(node_page_state(nid, NR_FILE_PAGES)), 81 nid, K(node_page_state(nid, NR_FILE_PAGES)),
85 nid, K(node_page_state(nid, NR_FILE_MAPPED)), 82 nid, K(node_page_state(nid, NR_FILE_MAPPED)),
86 nid, K(node_page_state(nid, NR_ANON_PAGES)), 83 nid, K(node_page_state(nid, NR_ANON_PAGES)),