From: Mike Kravetz <kravetz@us.ibm.com>
To: Paul Mackerras <paulus@samba.org>
Cc: linuxppc64-dev@ozlabs.org, linux-kernel@vger.kernel.org,
lhms-devel@lists.sourceforge.net
Subject: [PATCH 2/4] Memory Add Fixes for ppc64
Date: Fri, 4 Nov 2005 15:19:32 -0800 [thread overview]
Message-ID: <20051104231932.GC25545@w-mikek2.ibm.com> (raw)
In-Reply-To: <20051104231552.GA25545@w-mikek2.ibm.com>
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>
diff -Naupr linux-2.6.14-git7/arch/powerpc/mm/mem.c linux-2.6.14-git7.work/arch/powerpc/mm/mem.c
--- linux-2.6.14-git7/arch/powerpc/mm/mem.c 2005-11-04 21:21:05.000000000 +0000
+++ linux-2.6.14-git7.work/arch/powerpc/mm/mem.c 2005-11-04 22:09:59.000000000 +0000
@@ -107,6 +107,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++;
next prev parent reply other threads:[~2005-11-04 23:19 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-04 23:15 [PATCH 0/4] " Mike Kravetz
2005-11-04 23:18 ` [PATCH 1/4] " Mike Kravetz
2005-11-05 0:04 ` Benjamin Herrenschmidt
2005-11-05 0:35 ` Mike Kravetz
2005-11-05 0:43 ` Benjamin Herrenschmidt
2005-11-07 20:47 ` Mike Kravetz
2005-11-07 21:12 ` Benjamin Herrenschmidt
2005-11-07 21:48 ` Mike Kravetz
2005-11-08 0:35 ` Benjamin Herrenschmidt
2005-11-08 14:51 ` Andy Whitcroft
2005-11-08 0:25 ` [PATCH 1/4] revised " Mike Kravetz
2005-11-08 2:07 ` Paul Mackerras
2005-11-08 3:02 ` Mike Kravetz
2005-11-04 23:19 ` Mike Kravetz [this message]
2005-11-04 23:20 ` [PATCH 3/4] " Mike Kravetz
2005-11-04 23:21 ` [PATCH 4/4] " Mike Kravetz
2005-11-07 0:59 ` Paul Mackerras
2005-11-07 17:39 ` Mike Kravetz
2005-11-08 0:39 ` [PATCH 0/4] " Anton Blanchard
2005-11-08 0:48 ` Mike Kravetz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20051104231932.GC25545@w-mikek2.ibm.com \
--to=kravetz@us.ibm.com \
--cc=lhms-devel@lists.sourceforge.net \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc64-dev@ozlabs.org \
--cc=paulus@samba.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome