[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1365415000-10389-2-git-send-email-linfeng@cn.fujitsu.com>
Date: Mon, 8 Apr 2013 17:56:39 +0800
From: Lin Feng <linfeng@...fujitsu.com>
To: akpm@...ux-foundation.org
Cc: cl@...ux.com, tglx@...utronix.de, mingo@...hat.com, hpa@...or.com,
yinghai@...nel.org, catalin.marinas@....com, will.deacon@....com,
arnd@...db.de, tony@...mide.com, ben@...adent.org.uk,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
x86@...nel.org, linux-mm@...ck.org, isimatu.yasuaki@...fujitsu.com,
Lin Feng <linfeng@...fujitsu.com>
Subject: [PATCH 1/2] mm: vmemmap: x86: add vmemmap_verify check for hot-add node case
In hot add node(memory) case, vmemmap pages are always allocated from other
node, but the current logic just skip vmemmap_verify check.
So we should also issue "potential offnode page_structs" warning messages
if we are the case.
Cc: Christoph Lameter <cl@...ux.com>
Cc: Thomas Gleixner <tglx@...utronix.de>
Cc: Ingo Molnar <mingo@...hat.com>
Cc: "H. Peter Anvin" <hpa@...or.com>
Cc: Yinghai Lu <yinghai@...nel.org>
Cc: Andrew Morton <akpm@...ux-foundation.org>
Reported-by: Yasuaki Ishimatsu <isimatu.yasuaki@...fujitsu.com>
Signed-off-by: Lin Feng <linfeng@...fujitsu.com>
---
arch/x86/mm/init_64.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/arch/x86/mm/init_64.c b/arch/x86/mm/init_64.c
index 474e28f..e2a7277 100644
--- a/arch/x86/mm/init_64.c
+++ b/arch/x86/mm/init_64.c
@@ -1318,6 +1318,8 @@ vmemmap_populate(struct page *start_page, unsigned long size, int node)
if (!p)
return -ENOMEM;
+ vmemmap_verify((pte_t *)p, node, addr, addr + PAGE_SIZE);
+
addr_end = addr + PAGE_SIZE;
p_end = p + PAGE_SIZE;
} else {
@@ -1347,8 +1349,8 @@ vmemmap_populate(struct page *start_page, unsigned long size, int node)
addr_end = addr + PMD_SIZE;
p_end = p + PMD_SIZE;
- } else
- vmemmap_verify((pte_t *)pmd, node, addr, next);
+ }
+ vmemmap_verify((pte_t *)pmd, node, addr, next);
}
}
--
1.8.0.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists