public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
From: Jesse Barnes <jbarnes@engr.sgi.com>
To: linux-ia64@vger.kernel.org
Subject: [PATCH] fix show_mem on discontig machines
Date: Wed, 25 Aug 2004 00:19:58 +0000	[thread overview]
Message-ID: <200408241719.58648.jbarnes@engr.sgi.com> (raw)

[-- 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);
 	}

                 reply	other threads:[~2004-08-25  0:19 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200408241719.58648.jbarnes@engr.sgi.com \
    --to=jbarnes@engr.sgi.com \
    --cc=linux-ia64@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox