diff options
author | Mike Kravetz <kravetz@us.ibm.com> | 2005-11-04 23:19:32 (GMT) |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2005-11-08 04:17:19 (GMT) |
commit | dd7ccbd3eed52a42dc8bba57717dac3ece39b58e (patch) | |
tree | a6ff81f591fec7318bffd3e666d2949544cd932c /arch/powerpc/mm | |
parent | 54b79248b24610663298e122c6ba3804468271fe (diff) | |
download | linux-fsl-qoriq-dd7ccbd3eed52a42dc8bba57717dac3ece39b58e.tar.xz |
[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.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/mm/mem.c b/arch/powerpc/mm/mem.c index 2ead0951..1dd3cc6 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++; |