|
@@ -4650,7 +4650,7 @@ static void __paginginit free_area_init_core(struct pglist_data *pgdat,
|
|
nr_all_pages += freesize;
|
|
nr_all_pages += freesize;
|
|
|
|
|
|
zone->spanned_pages = size;
|
|
zone->spanned_pages = size;
|
|
- zone->present_pages = freesize;
|
|
|
|
|
|
+ zone->present_pages = realsize;
|
|
/*
|
|
/*
|
|
* Set an approximate value for lowmem here, it will be adjusted
|
|
* Set an approximate value for lowmem here, it will be adjusted
|
|
* when the bootmem allocator frees pages into the buddy system.
|
|
* when the bootmem allocator frees pages into the buddy system.
|