Commit 1685a771 authored by Jesse Barnes's avatar Jesse Barnes Committed by Linus Torvalds

[PATCH] fix show_mem on discontig machines

Dave Hansen recently did some bootmem and paging init cleanups, but I
missed this little bit when I tested his original patches.  We need to
initialize pgdat->node_mem_map correctly since a) we're using vmem_map, and
b) the core won't do it for us since we have a valid node_start_pfn I
believe.
Signed-off-by: default avatarJesse Barnes <jbarnes@sgi.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 0a453383
...@@ -664,6 +664,7 @@ void paging_init(void) ...@@ -664,6 +664,7 @@ void paging_init(void)
pfn_offset = mem_data[node].min_pfn; pfn_offset = mem_data[node].min_pfn;
NODE_DATA(node)->node_mem_map = vmem_map + pfn_offset;
free_area_init_node(node, NODE_DATA(node), zones_size, free_area_init_node(node, NODE_DATA(node), zones_size,
pfn_offset, zholes_size); pfn_offset, zholes_size);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment