projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0aedadf
)
vmemmap: warn about page_structs with remote distance
author
David Rientjes
<
[email protected]
>
Thu, 6 Nov 2008 20:53:31 +0000
(12:53 -0800)
committer
Linus Torvalds
<
[email protected]
>
Thu, 6 Nov 2008 23:41:19 +0000
(15:41 -0800)
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 <
[email protected]
>
Signed-off-by: David Rientjes <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
mm/sparse-vmemmap.c
patch
|
blob
|
history
diff --git
a/mm/sparse-vmemmap.c
b/mm/sparse-vmemmap.c
index a91b5f8fcaf61e6dc50bfe0526e5b488c3c967c7..a13ea6401ae7428d967d15a3c5a0cf5472ee2240 100644
(file)
--- 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);
}