Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965251AbVKHGWo (ORCPT ); Tue, 8 Nov 2005 01:22:44 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S965260AbVKHGWo (ORCPT ); Tue, 8 Nov 2005 01:22:44 -0500 Received: from omx3-ext.sgi.com ([192.48.171.20]:52184 "EHLO omx3.sgi.com") by vger.kernel.org with ESMTP id S965251AbVKHGWn (ORCPT ); Tue, 8 Nov 2005 01:22:43 -0500 Date: Mon, 7 Nov 2005 22:22:24 -0800 From: Paul Jackson To: Nick Piggin Cc: rohit.seth@intel.com, akpm@osdl.org, torvalds@osdl.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH]: Cleanup of __alloc_pages Message-Id: <20051107222224.3b4f2a84.pj@sgi.com> In-Reply-To: <43703EFB.1010103@yahoo.com.au> References: <20051107174349.A8018@unix-os.sc.intel.com> <20051107175358.62c484a3.akpm@osdl.org> <1131416195.20471.31.camel@akash.sc.intel.com> <43701FC6.5050104@yahoo.com.au> <20051107214420.6d0f6ec4.pj@sgi.com> <43703EFB.1010103@yahoo.com.au> Organization: SGI X-Mailer: Sylpheed version 2.0.0beta5 (GTK+ 2.4.9; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1429 Lines: 38 Nick wrote: > Because it is on the other side of an &&, which evaulates to a > constant zero when !CONFIG_CPUSETS. Ah so. > Having __GFP_HIGH as its own flag gives some more flexibility. I > don't think it has a downside? With respect to GFP_ATOMIC, __GFP_HIGH has no flexibility, as they are #defined to be the same thing. With respect to __GFP_WAIT, if we only ever use it exactly when we don't use __GFP_HIGH aka GFP_ATOMIC, then there is a definite downside. My old brain doesn't fold constants nearly as reliably or rapidly as a compiler. Every apparent degree of freedom that is unused wastes a few of my remaining precious neurons understanding it. It directly leads to such bugs as the one I noted in my last reply, when I realized that checking cpusets in the 'ignoring mins' case was bogus. __GFP_HIGH has a second cost - it is easily confused with __GFP_HIGHMEM. > That would be good. I'll send off a fresh patch with the > ALLOC_WATERMARKS fixed after Rohit gets around to looking over > it. Good. -- I won't rest till it's the best ... Programmer, Linux Scalability Paul Jackson 1.925.600.0401 - 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/