]> git.hungrycats.org Git - linux/commitdiff
[PATCH] fix show_mem on discontig machines
authorJesse Barnes <jbarnes@engr.sgi.com>
Fri, 27 Aug 2004 03:29:57 +0000 (20:29 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Fri, 27 Aug 2004 03:29:57 +0000 (20:29 -0700)
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: Jesse Barnes <jbarnes@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/ia64/mm/discontig.c

index 80b87cc29ab71ffe1d6ecb20fb95f566856706d4..c030b951f50be5b6e9ba3027aa87ba9ee42051f4 100644 (file)
@@ -664,6 +664,7 @@ void paging_init(void)
 
                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,
                                    pfn_offset, zholes_size);
        }