]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - mm/sparse-vmemmap.c
vmemmap: warn about page_structs with remote distance
[linux-2.6-omap-h63xx.git] / mm / sparse-vmemmap.c
index 99c4f36eb8a33def3c713937cecb9cc51256359a..a13ea6401ae7428d967d15a3c5a0cf5472ee2240 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Virtual Memory Map support
  *
- * (C) 2007 sgi. Christoph Lameter <clameter@sgi.com>.
+ * (C) 2007 sgi. Christoph Lameter.
  *
  * Virtual memory maps allow VM primitives pfn_to_page, page_to_pfn,
  * virt_to_page, page_address() to be implemented as a base offset
@@ -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);
 }