mm: set zone->present_pages to number of existing pages in the zone
[platform/adaptation/renesas_rcar/renesas_kernel.git] / mm / page_alloc.c
index 5f73106..07fe78d 100644 (file)
@@ -4650,7 +4650,7 @@ static void __paginginit free_area_init_core(struct pglist_data *pgdat,
                nr_all_pages += freesize;
 
                zone->spanned_pages = size;
-               zone->present_pages = freesize;
+               zone->present_pages = realsize;
                /*
                 * Set an approximate value for lowmem here, it will be adjusted
                 * when the bootmem allocator frees pages into the buddy system.