From: Lai Jiangshan Date: Thu, 29 Nov 2012 03:18:05 +0000 (+1100) Subject: vmstat: use N_MEMORY instead N_HIGH_MEMORY X-Git-Tag: next-20121205~1^2~245 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=6b58f6b293029bda2b3b7fa24b3995ef3c5e5fc5;p=karo-tx-linux.git vmstat: use N_MEMORY instead N_HIGH_MEMORY N_HIGH_MEMORY stands for the nodes that has normal or high memory. N_MEMORY stands for the nodes that has any memory. The code here need to handle with the nodes which have memory, we should use N_MEMORY instead. Signed-off-by: Lai Jiangshan Acked-by: Christoph Lameter Signed-off-by: Wen Congyang Cc: Hillf Danton Cc: Lin Feng Cc: David Rientjes Signed-off-by: Andrew Morton --- diff --git a/mm/vmstat.c b/mm/vmstat.c index ab7cb648c509..9ba7f1c78f2d 100644 --- a/mm/vmstat.c +++ b/mm/vmstat.c @@ -939,7 +939,7 @@ static int pagetypeinfo_show(struct seq_file *m, void *arg) pg_data_t *pgdat = (pg_data_t *)arg; /* check memoryless node */ - if (!node_state(pgdat->node_id, N_HIGH_MEMORY)) + if (!node_state(pgdat->node_id, N_MEMORY)) return 0; seq_printf(m, "Page block order: %d\n", pageblock_order); @@ -1301,7 +1301,7 @@ static int unusable_show(struct seq_file *m, void *arg) pg_data_t *pgdat = (pg_data_t *)arg; /* check memoryless node */ - if (!node_state(pgdat->node_id, N_HIGH_MEMORY)) + if (!node_state(pgdat->node_id, N_MEMORY)) return 0; walk_zones_in_node(m, pgdat, unusable_show_print);