Messages in this thread Patch in this message | | | From | Jiang Liu <> | Subject | [RESEND PATCH v3 3/3] mm: increase totalram_pages when free pages allocated by bootmem allocator | Date | Tue, 15 Jan 2013 23:18:17 +0800 |
| |
Function put_page_bootmem() is used to free pages allocated by bootmem allocator, so it should increase totalram_pages when freeing pages into the buddy system.
Signed-off-by: Jiang Liu <jiang.liu@huawei.com> --- mm/memory_hotplug.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c index d04ed87..b52df74 100644 --- a/mm/memory_hotplug.c +++ b/mm/memory_hotplug.c @@ -124,6 +124,7 @@ void __ref put_page_bootmem(struct page *page) mutex_lock(&ppb_lock); __free_pages_bootmem(page, 0); mutex_unlock(&ppb_lock); + totalram_pages++; } } -- 1.7.9.5
| |