diff options
Diffstat (limited to 'mm/page_alloc.c')
| -rw-r--r-- | mm/page_alloc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 7d4ff81b973f..5760c626c309 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c | |||
| @@ -5904,6 +5904,7 @@ static void __paginginit free_area_init_core(struct pglist_data *pgdat) | |||
| 5904 | init_waitqueue_head(&pgdat->kcompactd_wait); | 5904 | init_waitqueue_head(&pgdat->kcompactd_wait); |
| 5905 | #endif | 5905 | #endif |
| 5906 | pgdat_page_ext_init(pgdat); | 5906 | pgdat_page_ext_init(pgdat); |
| 5907 | spin_lock_init(&pgdat->lru_lock); | ||
| 5907 | 5908 | ||
| 5908 | for (j = 0; j < MAX_NR_ZONES; j++) { | 5909 | for (j = 0; j < MAX_NR_ZONES; j++) { |
| 5909 | struct zone *zone = pgdat->node_zones + j; | 5910 | struct zone *zone = pgdat->node_zones + j; |
| @@ -5958,10 +5959,9 @@ static void __paginginit free_area_init_core(struct pglist_data *pgdat) | |||
| 5958 | zone->min_slab_pages = (freesize * sysctl_min_slab_ratio) / 100; | 5959 | zone->min_slab_pages = (freesize * sysctl_min_slab_ratio) / 100; |
| 5959 | #endif | 5960 | #endif |
| 5960 | zone->name = zone_names[j]; | 5961 | zone->name = zone_names[j]; |
| 5962 | zone->zone_pgdat = pgdat; | ||
| 5961 | spin_lock_init(&zone->lock); | 5963 | spin_lock_init(&zone->lock); |
| 5962 | spin_lock_init(&zone->lru_lock); | ||
| 5963 | zone_seqlock_init(zone); | 5964 | zone_seqlock_init(zone); |
| 5964 | zone->zone_pgdat = pgdat; | ||
| 5965 | zone_pcp_init(zone); | 5965 | zone_pcp_init(zone); |
| 5966 | 5966 | ||
| 5967 | /* For bootup, initialized properly in watermark setup */ | 5967 | /* For bootup, initialized properly in watermark setup */ |
