From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx155.postini.com [74.125.245.155]) by kanga.kvack.org (Postfix) with SMTP id A82106B0062 for ; Thu, 15 Nov 2012 19:29:22 -0500 (EST) Date: Thu, 15 Nov 2012 16:29:20 -0800 From: Andrew Morton Subject: Re: [PART3 Patch v2 13/14] page_alloc: use N_MEMORY instead N_HIGH_MEMORY change the node_states initialization Message-Id: <20121115162920.af46d08a.akpm@linux-foundation.org> In-Reply-To: <1352969857-26623-14-git-send-email-wency@cn.fujitsu.com> References: <1352969857-26623-1-git-send-email-wency@cn.fujitsu.com> <1352969857-26623-14-git-send-email-wency@cn.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: Wen Congyang Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-doc@vger.kernel.org, Rob Landley , Yasuaki Ishimatsu , Lai Jiangshan , Jiang Liu , KOSAKI Motohiro , Minchan Kim , Mel Gorman , David Rientjes , Yinghai Lu , Rusty Russell , Lin feng On Thu, 15 Nov 2012 16:57:36 +0800 Wen Congyang wrote: > N_HIGH_MEMORY stands for the nodes that has normal or high memory. > N_MEMORY stands for the nodes that has any memory. > > The code here need to handle with the nodes which have memory, we should > use N_MEMORY instead. > > Since we introduced N_MEMORY, we update the initialization of node_states. reset_zone_present_pages() has been removed by the recently-queued revert-mm-fix-up-zone-present-pages.patch, so I dropped that hunk. We still have akpm:/usr/src/25> grep N_HIGH_MEMORY mm/page_alloc.c [N_HIGH_MEMORY] = { { [0] = 1UL } }, node_set_state(nid, N_HIGH_MEMORY); if (N_NORMAL_MEMORY != N_HIGH_MEMORY && which I hope is correct. Can you please check it? -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org