aboutsummaryrefslogtreecommitdiff
path: root/arch/powerpc/mm
diff options
context:
space:
mode:
authorMike Kravetz <kravetz@us.ibm.com>2005-11-04 15:19:32 -0800
committerPaul Mackerras <paulus@samba.org>2005-11-08 15:17:19 +1100
commitdd7ccbd3eed52a42dc8bba57717dac3ece39b58e (patch)
treea6ff81f591fec7318bffd3e666d2949544cd932c /arch/powerpc/mm
parent54b79248b24610663298e122c6ba3804468271fe (diff)
[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>
Diffstat (limited to 'arch/powerpc/mm')
-rw-r--r--arch/powerpc/mm/mem.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/mm/mem.c b/arch/powerpc/mm/mem.c
index 2ead0951823..1dd3cc69a49 100644
--- a/arch/powerpc/mm/mem.c
+++ b/arch/powerpc/mm/mem.c
@@ -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++;