diff options
author | Christoph Lameter <clameter@sgi.com> | 2006-09-27 10:50:10 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-09-27 17:26:13 +0200 |
commit | 5d2923436217ba8bd05c5ee157712a391891c382 (patch) | |
tree | ddb06469d5a992a1839ca5d7f626486ac99490d2 /mm/vmstat.c | |
parent | [PATCH] Do not allocate pagesets for unpopulated zones. (diff) | |
download | linux-5d2923436217ba8bd05c5ee157712a391891c382.tar.xz linux-5d2923436217ba8bd05c5ee157712a391891c382.zip |
[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 <clameter@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'mm/vmstat.c')
-rw-r--r-- | mm/vmstat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/vmstat.c b/mm/vmstat.c index 69c657132e1f..a2b6a9f96e5c 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); |