diff options
Diffstat (limited to 'mm')
-rw-r--r-- | mm/page_alloc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 48aee0f5902f..a6f7576aecae 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c | |||
@@ -4515,6 +4515,9 @@ void __paginginit free_area_init_node(int nid, unsigned long *zones_size, | |||
4515 | { | 4515 | { |
4516 | pg_data_t *pgdat = NODE_DATA(nid); | 4516 | pg_data_t *pgdat = NODE_DATA(nid); |
4517 | 4517 | ||
4518 | /* pg_data_t should be reset to zero when it's allocated */ | ||
4519 | WARN_ON(pgdat->nr_zones || pgdat->node_start_pfn || pgdat->classzone_idx); | ||
4520 | |||
4518 | pgdat->node_id = nid; | 4521 | pgdat->node_id = nid; |
4519 | pgdat->node_start_pfn = node_start_pfn; | 4522 | pgdat->node_start_pfn = node_start_pfn; |
4520 | calculate_node_totalpages(pgdat, zones_size, zholes_size); | 4523 | calculate_node_totalpages(pgdat, zones_size, zholes_size); |