From: Mike Kravetz Date: Fri, 4 Nov 2005 23:19:32 +0000 (-0800) Subject: [PATCH] Memory Add Fixes for ppc64 X-Git-Tag: v2.6.15-rc1~51^2~52 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd7ccbd3eed52a42dc8bba57717dac3ece39b58e;p=linux-2.6 [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 Signed-off-by: Paul Mackerras --- diff --git a/arch/powerpc/mm/mem.c b/arch/powerpc/mm/mem.c index 2ead095182..1dd3cc69a4 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++;