From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759904AbZBXR4B (ORCPT ); Tue, 24 Feb 2009 12:56:01 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758923AbZBXRzs (ORCPT ); Tue, 24 Feb 2009 12:55:48 -0500 Received: from gir.skynet.ie ([193.1.99.77]:38440 "EHLO gir.skynet.ie" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756569AbZBXRzs (ORCPT ); Tue, 24 Feb 2009 12:55:48 -0500 Date: Tue, 24 Feb 2009 17:55:44 +0000 From: Mel Gorman To: Christoph Lameter Cc: Linux Memory Management List , Pekka Enberg , Rik van Riel , KOSAKI Motohiro , Johannes Weiner , Nick Piggin , Linux Kernel Mailing List , Lin Ming , Zhang Yanmin , Peter Zijlstra Subject: Re: [PATCH 08/19] Simplify the check on whether cpusets are a factor or not Message-ID: <20090224175544.GD5333@csn.ul.ie> References: <1235477835-14500-1-git-send-email-mel@csn.ul.ie> <1235477835-14500-9-git-send-email-mel@csn.ul.ie> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17+20080114 (2008-01-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 24, 2009 at 12:27:02PM -0500, Christoph Lameter wrote: > On Tue, 24 Feb 2009, Mel Gorman wrote: > > > @@ -1420,8 +1429,8 @@ zonelist_scan: > > if (NUMA_BUILD && zlc_active && > > !zlc_zone_worth_trying(zonelist, z, allowednodes)) > > continue; > > - if ((alloc_flags & ALLOC_CPUSET) && > > - !cpuset_zone_allowed_softwall(zone, gfp_mask)) > > + if (alloc_cpuset) > > + if (!cpuset_zone_allowed_softwall(zone, gfp_mask)) > > goto try_next_zone; > > Hmmm... Why remove the && here? Looks more confusing to me. > At the time, just because it was what I was splitting out. Chances are it makes no difference to the assembly. I'll double check and if not, switch it back. -- Mel Gorman Part-time Phd Student Linux Technology Center University of Limerick IBM Dublin Software Lab