Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751365Ab2KPCzg (ORCPT ); Thu, 15 Nov 2012 21:55:36 -0500 Received: from cn.fujitsu.com ([222.73.24.84]:21340 "EHLO song.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1751212Ab2KPCzf (ORCPT ); Thu, 15 Nov 2012 21:55:35 -0500 X-IronPort-AV: E=Sophos;i="4.83,261,1352044800"; d="scan'208";a="6210036" Message-ID: <50A5AC9B.7000107@cn.fujitsu.com> Date: Fri, 16 Nov 2012 11:01:47 +0800 From: Wen Congyang User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100413 Fedora/3.0.4-2.fc13 Thunderbird/3.0.4 MIME-Version: 1.0 To: Andrew Morton 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 Subject: Re: [PART3 Patch v2 13/14] page_alloc: use N_MEMORY instead N_HIGH_MEMORY change the node_states initialization References: <1352969857-26623-1-git-send-email-wency@cn.fujitsu.com> <1352969857-26623-14-git-send-email-wency@cn.fujitsu.com> <20121115162920.af46d08a.akpm@linux-foundation.org> In-Reply-To: <20121115162920.af46d08a.akpm@linux-foundation.org> X-MIMETrack: Itemize by SMTP Server on mailserver/fnst(Release 8.5.3|September 15, 2011) at 2012/11/16 10:55:24, Serialize by Router on mailserver/fnst(Release 8.5.3|September 15, 2011) at 2012/11/16 10:55:25, Serialize complete at 2012/11/16 10:55:25 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1337 Lines: 37 At 11/16/2012 08:29 AM, Andrew Morton Wrote: > 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? > Yes, it is correct. We will introduce N_MEMORY nodemask in part4, and N_MEMORY is N_HIGH_MEMORY in this patchset. So we don't init and update N_MEMORY nodemask in this patchset. Thanks Wen Congyang -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/