From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757524Ab2GFPBm (ORCPT ); Fri, 6 Jul 2012 11:01:42 -0400 Received: from merlin.infradead.org ([205.233.59.134]:39309 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751194Ab2GFPBk convert rfc822-to-8bit (ORCPT ); Fri, 6 Jul 2012 11:01:40 -0400 Message-ID: <1341586848.7709.54.camel@twins> Subject: Re: [RFC][PATCH 02/26] mm, mpol: Remove NUMA_INTERLEAVE_HIT From: Peter Zijlstra To: Kyungmin Park Cc: Linus Torvalds , Andrew Morton , Thomas Gleixner , Ingo Molnar , Paul Turner , Suresh Siddha , Mike Galbraith , "Paul E. McKenney" , Lai Jiangshan , Dan Smith , Bharata B Rao , Lee Schermerhorn , Andrea Arcangeli , Rik van Riel , Johannes Weiner , linux-kernel@vger.kernel.org, linux-mm@kvack.org Date: Fri, 06 Jul 2012 17:00:48 +0200 In-Reply-To: References: <20120316144028.036474157@chello.nl> <20120316144240.234456258@chello.nl> Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT X-Mailer: Evolution 3.2.2- Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2012-07-06 at 23:54 +0900, Kyungmin Park wrote: > > static struct zonelist *policy_zonelist(gfp_t gfp, struct mempolicy *policy, > > int nd) > > { > > switch (policy->mode) { > > + case MPOL_INTERLEAVE: > > + nd = interleave_nodes(policy); > Jut nitpick, > Original code also uses the 'unsigned nid' but now it assigned > 'unsigned nid' to 'int nd' at here. does it right? node id is generally signed, we use -1 as a special value indicating no node preference in a number of places. Not sure why it was unsigned here. Also I think even SGI isn't anywhere near 2^31 nodes.