Skip to contentSkip to conversation

fix show_mem on discontig machines

PATCH New Jesse Barnes 1 participant 1 message Aug 25, 2004

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

Thanks,
Jesse

===== arch/ia64/mm/discontig.c 1.17 vs edited =====

arch/ia64/mm/discontig.c +1 -0
@@ -664,6 +664,7 @@
 
 		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);
 	}