From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759576AbZBXRfy (ORCPT ); Tue, 24 Feb 2009 12:35:54 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756176AbZBXRfo (ORCPT ); Tue, 24 Feb 2009 12:35:44 -0500 Received: from smtp3.ultrahosting.com ([74.213.175.254]:55113 "EHLO smtp.ultrahosting.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754584AbZBXRfn (ORCPT ); Tue, 24 Feb 2009 12:35:43 -0500 Date: Tue, 24 Feb 2009 12:27:02 -0500 (EST) From: Christoph Lameter X-X-Sender: cl@qirst.com To: Mel Gorman 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 In-Reply-To: <1235477835-14500-9-git-send-email-mel@csn.ul.ie> Message-ID: References: <1235477835-14500-1-git-send-email-mel@csn.ul.ie> <1235477835-14500-9-git-send-email-mel@csn.ul.ie> User-Agent: Alpine 1.10 (DEB 962 2008-03-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.