[PATCH] x86: set node_remap_size[0] in fallback path

From: Yinghai Lu
Date: Sun Jun 01 2008 - 01:57:53 EST



otherwise alloc_remap will not get node_mem_map from kva area, and
alloc_node_mem_map has to alloc_bootmem_node get mem_map.
it will use two copies low address...

Signed-off-by: Yinghai Lu <yhlu.kernel@xxxxxxxxx>

--- a/arch/x86/mm/discontig_32.c 2008-05-31 21:46:14.000000000 -0700
+++ b/arch/x86/mm/discontig_32.c 2008-05-31 21:49:02.000000000 -0700
@@ -124,6 +124,7 @@ int __init get_memcfg_numa_flat(void)
node_start_pfn[0] = 0;
node_end_pfn[0] = max_pfn;
memory_present(0, 0, max_pfn);
+ node_remap_size[0] = node_memmap_size_bytes(0, 0, max_pfn);

/* Indicate there is one node available. */
nodes_clear(node_online_map);
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/