public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fix show_mem on discontig machines
@ 2004-08-25  0:19 Jesse Barnes
  0 siblings, 0 replies; only message in thread
From: Jesse Barnes @ 2004-08-25  0:19 UTC (permalink / raw)
  To: linux-ia64

[-- Attachment #1: Type: text/plain, Size: 361 bytes --]

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>

Thanks,
Jesse

[-- Attachment #2: node-mem-map-fix.patch --]
[-- Type: text/plain, Size: 395 bytes --]

===== arch/ia64/mm/discontig.c 1.17 vs edited =====
--- 1.17/arch/ia64/mm/discontig.c	2004-08-24 02:08:33 -07:00
+++ edited/arch/ia64/mm/discontig.c	2004-08-24 17:11:35 -07:00
@@ -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);
 	}

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-08-25  0:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-25  0:19 [PATCH] fix show_mem on discontig machines Jesse Barnes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox