linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* zone_statistics: Use hot node instead of cold zone_pgdat
@ 2006-09-19  2:50 Christoph Lameter
  0 siblings, 0 replies; only message in thread
From: Christoph Lameter @ 2006-09-19  2:50 UTC (permalink / raw)
  To: akpm; +Cc: linux-mm

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 <clameter@sgi.com>

Index: linux-2.6.18-rc6-mm2/mm/vmstat.c
===================================================================
--- linux-2.6.18-rc6-mm2.orig/mm/vmstat.c	2006-09-18 21:24:50.000000000 -0500
+++ linux-2.6.18-rc6-mm2/mm/vmstat.c	2006-09-18 21:25:48.793059949 -0500
@@ -370,7 +370,7 @@ void zone_statistics(struct zonelist *zo
 		__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);

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-09-19  2:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-19  2:50 zone_statistics: Use hot node instead of cold zone_pgdat Christoph Lameter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox