summaryrefslogtreecommitdiffstats
path: root/mm/sparse-vmemmap.c
diff options
context:
space:
mode:
authorDavid Rientjes <rientjes@google.com>2008-11-06 12:53:31 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2008-11-06 15:41:19 -0800
commitb41ad14c30acf023d09ac064096a4cf41248ce46 (patch)
tree30609ac0611f9172cecf846a5b67a65f973adf78 /mm/sparse-vmemmap.c
parent0aedadf91a70a11c4a3e7c7d99b21e5528af8d5d (diff)
downloadop-kernel-dev-b41ad14c30acf023d09ac064096a4cf41248ce46.zip
op-kernel-dev-b41ad14c30acf023d09ac064096a4cf41248ce46.tar.gz
vmemmap: warn about page_structs with remote distance
It's insufficient to simply compare node ids when warning about offnode page_structs since it's possible to still have local affinity. Acked-by: Christoph Lameter <cl@linux-foundation.org> Signed-off-by: David Rientjes <rientjes@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/sparse-vmemmap.c')
-rw-r--r--mm/sparse-vmemmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/sparse-vmemmap.c b/mm/sparse-vmemmap.c
index a91b5f8..a13ea64 100644
--- a/mm/sparse-vmemmap.c
+++ b/mm/sparse-vmemmap.c
@@ -64,7 +64,7 @@ void __meminit vmemmap_verify(pte_t *pte, int node,
unsigned long pfn = pte_pfn(*pte);
int actual_node = early_pfn_to_nid(pfn);
- if (actual_node != node)
+ if (node_distance(actual_node, node) > LOCAL_DISTANCE)
printk(KERN_WARNING "[%lx-%lx] potential offnode "
"page_structs\n", start, end - 1);
}
OpenPOWER on IntegriCloud