[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4A2803D1.4070001@kernel.org>
Date: Thu, 04 Jun 2009 10:26:41 -0700
From: Yinghai Lu <yinghai@...nel.org>
To: Christoph Lameter <cl@...ux-foundation.org>,
Andrew Morton <akpm@...ux-foundation.org>, mingo@...e.hu,
mel@....ul.ie
CC: tglx@...utronix.de, hpa@...or.com, suresh.b.siddha@...el.com,
linux-kernel@...r.kernel.org, viro@...iv.linux.org.uk,
rusty@...tcorp.com.au, steiner@....com, rientjes@...gle.com
Subject: [PATCH] mm: clear N_HIGH_MEMORY map before se set it again -v4
SRAT tables may contains nodes of very small size. The arch code may
decide to not activate such a node. However, currently the early boot code
sets N_HIGH_MEMORY for such nodes. These nodes therefore seem to be active
although these nodes have no present pages.
for 64bit N_HIGH_MEMORY == N_NORMAL_MEMORY, so that works for 64 bit too
v4: update description according to Christoph
Signed-off-by: Yinghai Lu <Yinghai@...nel.org>
Tested-by: Jack Steiner <steiner@....com>
Acked-by: Christoph Lameter <cl@...ux-foundation.org>
---
mm/page_alloc.c | 5 +++++
1 file changed, 5 insertions(+)
Index: linux-2.6/mm/page_alloc.c
===================================================================
--- linux-2.6.orig/mm/page_alloc.c
+++ linux-2.6/mm/page_alloc.c
@@ -4041,6 +4041,11 @@ void __init free_area_init_nodes(unsigne
early_node_map[i].start_pfn,
early_node_map[i].end_pfn);
+ /*
+ * find_zone_movable_pfns_for_nodes/early_calculate_totalpages init
+ * that node_mask, clear it at first
+ */
+ nodes_clear(node_states[N_HIGH_MEMORY]);
/* Initialise every node */
mminit_verify_pageflags_layout();
setup_nr_node_ids();
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists