mirror of https://gitee.com/openkylin/linux.git
[PATCH] Memory Add Fixes for ppc64
memmap_init_zone() sets page count to 1. Before 'freeing' the page, we need to clear the count. This is the same that is done on free_all_bootmem_core() for memory discovered at boot time. Signed-off-by: Mike Kravetz <kravetz@us.ibm.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:
parent
54b79248b2
commit
dd7ccbd3ee
|
@ -110,6 +110,7 @@ EXPORT_SYMBOL(phys_mem_access_prot);
|
|||
void online_page(struct page *page)
|
||||
{
|
||||
ClearPageReserved(page);
|
||||
set_page_count(page, 0);
|
||||
free_cold_page(page);
|
||||
totalram_pages++;
|
||||
num_physpages++;
|
||||
|
|
Loading…
Reference in New Issue