提交 dd7ccbd3 编写于 作者: M Mike Kravetz 提交者: Paul Mackerras

[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: NMike Kravetz <kravetz@us.ibm.com>
Signed-off-by: NPaul Mackerras <paulus@samba.org>
上级 54b79248
...@@ -110,6 +110,7 @@ EXPORT_SYMBOL(phys_mem_access_prot); ...@@ -110,6 +110,7 @@ EXPORT_SYMBOL(phys_mem_access_prot);
void online_page(struct page *page) void online_page(struct page *page)
{ {
ClearPageReserved(page); ClearPageReserved(page);
set_page_count(page, 0);
free_cold_page(page); free_cold_page(page);
totalram_pages++; totalram_pages++;
num_physpages++; num_physpages++;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册