diff options
Diffstat (limited to 'mm/page_alloc.c')
-rw-r--r-- | mm/page_alloc.c | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 6aa2c31f513b..d61671260f92 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c | |||
@@ -709,27 +709,6 @@ void drain_local_pages(void) | |||
709 | } | 709 | } |
710 | #endif /* CONFIG_PM */ | 710 | #endif /* CONFIG_PM */ |
711 | 711 | ||
712 | static void zone_statistics(struct zonelist *zonelist, struct zone *z, int cpu) | ||
713 | { | ||
714 | #ifdef CONFIG_NUMA | ||
715 | pg_data_t *pg = z->zone_pgdat; | ||
716 | pg_data_t *orig = zonelist->zones[0]->zone_pgdat; | ||
717 | struct per_cpu_pageset *p; | ||
718 | |||
719 | p = zone_pcp(z, cpu); | ||
720 | if (pg == orig) { | ||
721 | p->numa_hit++; | ||
722 | } else { | ||
723 | p->numa_miss++; | ||
724 | zone_pcp(zonelist->zones[0], cpu)->numa_foreign++; | ||
725 | } | ||
726 | if (pg == NODE_DATA(numa_node_id())) | ||
727 | p->local_node++; | ||
728 | else | ||
729 | p->other_node++; | ||
730 | #endif | ||
731 | } | ||
732 | |||
733 | /* | 712 | /* |
734 | * Free a 0-order page | 713 | * Free a 0-order page |
735 | */ | 714 | */ |
@@ -827,7 +806,7 @@ again: | |||
827 | } | 806 | } |
828 | 807 | ||
829 | __mod_page_state_zone(zone, pgalloc, 1 << order); | 808 | __mod_page_state_zone(zone, pgalloc, 1 << order); |
830 | zone_statistics(zonelist, zone, cpu); | 809 | zone_statistics(zonelist, zone); |
831 | local_irq_restore(flags); | 810 | local_irq_restore(flags); |
832 | put_cpu(); | 811 | put_cpu(); |
833 | 812 | ||