From: Christoph Lameter Date: Wed, 27 Sep 2006 08:50:10 +0000 (-0700) Subject: [PATCH] zone_statistics: Use hot node instead of cold zone_pgdat X-Git-Tag: v2.6.19-rc1~965 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=5d2923436217ba8bd05c5ee157712a391891c382;p=linux-2.6-omap-h63xx.git [PATCH] zone_statistics: Use hot node instead of cold zone_pgdat Now that we have the node in the hot zone of struct zone we can avoid accessing zone_pgdat in zone_statistics. Signed-off-by: Christoph Lameter Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/vmstat.c b/mm/vmstat.c index 69c657132e1..a2b6a9f96e5 100644 --- a/mm/vmstat.c +++ b/mm/vmstat.c @@ -371,7 +371,7 @@ void zone_statistics(struct zonelist *zonelist, struct zone *z) __inc_zone_state(z, NUMA_MISS); __inc_zone_state(zonelist->zones[0], NUMA_FOREIGN); } - if (z->zone_pgdat == NODE_DATA(numa_node_id())) + if (z->node == numa_node_id()) __inc_zone_state(z, NUMA_LOCAL); else __inc_zone_state(z, NUMA_OTHER);