diff options
Diffstat (limited to 'mm/page_alloc.c')
-rw-r--r-- | mm/page_alloc.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 9eb9eb928285..ee7a96ef40dc 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c | |||
@@ -3414,6 +3414,7 @@ static void __paginginit free_area_init_core(struct pglist_data *pgdat, | |||
3414 | for (j = 0; j < MAX_NR_ZONES; j++) { | 3414 | for (j = 0; j < MAX_NR_ZONES; j++) { |
3415 | struct zone *zone = pgdat->node_zones + j; | 3415 | struct zone *zone = pgdat->node_zones + j; |
3416 | unsigned long size, realsize, memmap_pages; | 3416 | unsigned long size, realsize, memmap_pages; |
3417 | enum lru_list l; | ||
3417 | 3418 | ||
3418 | size = zone_spanned_pages_in_node(nid, j, zones_size); | 3419 | size = zone_spanned_pages_in_node(nid, j, zones_size); |
3419 | realsize = size - zone_absent_pages_in_node(nid, j, | 3420 | realsize = size - zone_absent_pages_in_node(nid, j, |
@@ -3465,10 +3466,10 @@ static void __paginginit free_area_init_core(struct pglist_data *pgdat, | |||
3465 | zone->prev_priority = DEF_PRIORITY; | 3466 | zone->prev_priority = DEF_PRIORITY; |
3466 | 3467 | ||
3467 | zone_pcp_init(zone); | 3468 | zone_pcp_init(zone); |
3468 | INIT_LIST_HEAD(&zone->active_list); | 3469 | for_each_lru(l) { |
3469 | INIT_LIST_HEAD(&zone->inactive_list); | 3470 | INIT_LIST_HEAD(&zone->lru[l].list); |
3470 | zone->nr_scan_active = 0; | 3471 | zone->lru[l].nr_scan = 0; |
3471 | zone->nr_scan_inactive = 0; | 3472 | } |
3472 | zap_zone_vm_stats(zone); | 3473 | zap_zone_vm_stats(zone); |
3473 | zone->flags = 0; | 3474 | zone->flags = 0; |
3474 | if (!size) | 3475 | if (!size) |