diff options
Diffstat (limited to 'mm/bootmem.c')
-rw-r--r-- | mm/bootmem.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/mm/bootmem.c b/mm/bootmem.c index eb792323187b..58609bbf584e 100644 --- a/mm/bootmem.c +++ b/mm/bootmem.c | |||
@@ -271,9 +271,14 @@ void __init reset_all_zones_managed_pages(void) | |||
271 | */ | 271 | */ |
272 | unsigned long __init free_all_bootmem_node(pg_data_t *pgdat) | 272 | unsigned long __init free_all_bootmem_node(pg_data_t *pgdat) |
273 | { | 273 | { |
274 | unsigned long pages; | ||
275 | |||
274 | register_page_bootmem_info_node(pgdat); | 276 | register_page_bootmem_info_node(pgdat); |
275 | reset_node_managed_pages(pgdat); | 277 | reset_node_managed_pages(pgdat); |
276 | return free_all_bootmem_core(pgdat->bdata); | 278 | pages = free_all_bootmem_core(pgdat->bdata); |
279 | totalram_pages += pages; | ||
280 | |||
281 | return pages; | ||
277 | } | 282 | } |
278 | 283 | ||
279 | /** | 284 | /** |
@@ -291,6 +296,8 @@ unsigned long __init free_all_bootmem(void) | |||
291 | list_for_each_entry(bdata, &bdata_list, list) | 296 | list_for_each_entry(bdata, &bdata_list, list) |
292 | total_pages += free_all_bootmem_core(bdata); | 297 | total_pages += free_all_bootmem_core(bdata); |
293 | 298 | ||
299 | totalram_pages += total_pages; | ||
300 | |||
294 | return total_pages; | 301 | return total_pages; |
295 | } | 302 | } |
296 | 303 | ||