]> err.no Git - linux-2.6/commitdiff
[PATCH] Memory Add Fixes for ppc64
authorMike Kravetz <kravetz@us.ibm.com>
Fri, 4 Nov 2005 23:19:32 +0000 (15:19 -0800)
committerPaul Mackerras <paulus@samba.org>
Tue, 8 Nov 2005 04:17:19 +0000 (15:17 +1100)
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>
arch/powerpc/mm/mem.c

index 2ead0951823acccdf52a1eb55246db60a4651ebf..1dd3cc69a4901710d0514202dad224121619d9df 100644 (file)
@@ -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++;