diff options
Diffstat (limited to 'mm/vmstat.c')
-rw-r--r-- | mm/vmstat.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mm/vmstat.c b/mm/vmstat.c index 7c7286e9506d..879bcc0a1d4c 100644 --- a/mm/vmstat.c +++ b/mm/vmstat.c | |||
@@ -364,13 +364,13 @@ void refresh_cpu_vm_stats(int cpu) | |||
364 | * | 364 | * |
365 | * Must be called with interrupts disabled. | 365 | * Must be called with interrupts disabled. |
366 | */ | 366 | */ |
367 | void zone_statistics(struct zonelist *zonelist, struct zone *z) | 367 | void zone_statistics(struct zone *preferred_zone, struct zone *z) |
368 | { | 368 | { |
369 | if (z->zone_pgdat == zonelist->zones[0]->zone_pgdat) { | 369 | if (z->zone_pgdat == preferred_zone->zone_pgdat) { |
370 | __inc_zone_state(z, NUMA_HIT); | 370 | __inc_zone_state(z, NUMA_HIT); |
371 | } else { | 371 | } else { |
372 | __inc_zone_state(z, NUMA_MISS); | 372 | __inc_zone_state(z, NUMA_MISS); |
373 | __inc_zone_state(zonelist->zones[0], NUMA_FOREIGN); | 373 | __inc_zone_state(preferred_zone, NUMA_FOREIGN); |
374 | } | 374 | } |
375 | if (z->node == numa_node_id()) | 375 | if (z->node == numa_node_id()) |
376 | __inc_zone_state(z, NUMA_LOCAL); | 376 | __inc_zone_state(z, NUMA_LOCAL); |