Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5d292343 authored by Christoph Lameter's avatar Christoph Lameter Committed by Linus Torvalds
Browse files

[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: default avatarChristoph Lameter <clameter@sgi.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 66a55030
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -371,7 +371,7 @@ void zone_statistics(struct zonelist *zonelist, struct zone *z)
		__inc_zone_state(z, NUMA_MISS);
		__inc_zone_state(z, NUMA_MISS);
		__inc_zone_state(zonelist->zones[0], NUMA_FOREIGN);
		__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);
		__inc_zone_state(z, NUMA_LOCAL);
	else
	else
		__inc_zone_state(z, NUMA_OTHER);
		__inc_zone_state(z, NUMA_OTHER);