| To: | vagabon.xyz@gmail.com |
|---|---|
| Subject: | Re: [PATCH] do not count pages in holes with sparsemem |
| From: | Atsushi Nemoto <anemo@mba.ocn.ne.jp> |
| Date: | Sun, 09 Jul 2006 01:03:16 +0900 (JST) |
| Cc: | linux-mips@linux-mips.org, ralf@linux-mips.org |
| In-reply-to: | <cda58cb80607080739i772d439dqc4e06a8b275e03ee@mail.gmail.com> |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <cda58cb80607060805yc656114p53516b904188c20f@mail.gmail.com> <20060707.002602.75184460.anemo@mba.ocn.ne.jp> <cda58cb80607080739i772d439dqc4e06a8b275e03ee@mail.gmail.com> |
| Sender: | linux-mips-bounce@linux-mips.org |
On Sat, 8 Jul 2006 16:39:44 +0200, "Franck Bui-Huu" <vagabon.xyz@gmail.com>
wrote:
> Did you check that show_mem() still works ? I'm not sure about that point.
It should work, but this patch would make the output a bit better.
Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
diff --git a/arch/mips/mm/pgtable.c b/arch/mips/mm/pgtable.c
index 792c6eb..c93aa6c 100644
--- a/arch/mips/mm/pgtable.c
+++ b/arch/mips/mm/pgtable.c
@@ -15,6 +15,8 @@ #ifndef CONFIG_NEED_MULTIPLE_NODES /* X
printk("Free swap: %6ldkB\n", nr_swap_pages<<(PAGE_SHIFT-10));
pfn = max_mapnr;
while (pfn-- > 0) {
+ if (!pfn_valid(pfn))
+ continue;
page = pfn_to_page(pfn);
total++;
if (PageHighMem(page))
|
| Previous by Date: | Re: [PATCH] sparsemem fix, Franck Bui-Huu |
|---|---|
| Next by Date: | Re: [PATCH] fast path for rdhwr emulation for TLS, Atsushi Nemoto |
| Previous by Thread: | Re: [PATCH] do not count pages in holes with sparsemem, Franck Bui-Huu |
| Next by Thread: | Re: [PATCH] do not count pages in holes with sparsemem, Franck Bui-Huu |
| Indexes: | [Date] [Thread] [Top] [All Lists] |