From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Tue, 12 Jun 2007 13:06:03 -0700 (PDT) From: Christoph Lameter Subject: Re: [PATCH v2] Add populated_map to account for memoryless nodes In-Reply-To: <20070612200044.GF3798@us.ibm.com> Message-ID: References: <20070611202728.GD9920@us.ibm.com> <20070611221036.GA14458@us.ibm.com> <1181657940.5592.19.camel@localhost> <1181675840.5592.123.camel@localhost> <20070612194951.GC3798@us.ibm.com> <20070612200044.GF3798@us.ibm.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org Return-Path: To: Nishanth Aravamudan Cc: Lee Schermerhorn , anton@samba.org, akpm@linux-foundation.org, linux-mm@kvack.org, Kamezawa Hiroyuki List-ID: On Tue, 12 Jun 2007, Nishanth Aravamudan wrote: > > =================================================================== > > --- linux-2.6.22-rc4-mm2.orig/mm/mempolicy.c 2007-06-12 12:37:23.000000000 -0700 > > +++ linux-2.6.22-rc4-mm2/mm/mempolicy.c 2007-06-12 12:39:16.000000000 -0700 > > @@ -185,6 +185,7 @@ static struct mempolicy *mpol_new(int mo > > switch (mode) { > > case MPOL_INTERLEAVE: > > policy->v.nodes = *nodes; > > + nodemask_and(policy->v.nodes, policy->v.nodes, node_memory_map); > > if (nodes_weight(*nodes) == 0) { > > Shouldn't this be changed to > > if (nodes_weight(policy->v.nodes) == 0) { You are right. Fix applied. I will post a patchset when I got my testing done. -- 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