Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750858AbVKQOTW (ORCPT ); Thu, 17 Nov 2005 09:19:22 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750859AbVKQOTV (ORCPT ); Thu, 17 Nov 2005 09:19:21 -0500 Received: from mail09.syd.optusnet.com.au ([211.29.132.190]:54927 "EHLO mail09.syd.optusnet.com.au") by vger.kernel.org with ESMTP id S1750846AbVKQOTV (ORCPT ); Thu, 17 Nov 2005 09:19:21 -0500 From: Con Kolivas To: Dave Hansen Subject: Re: [PATCH] mm: is_dma_zone Date: Fri, 18 Nov 2005 01:19:00 +1100 User-Agent: KMail/1.8.3 Cc: linux-mm , Linux Kernel Mailing List , Andrew Morton References: <200511180059.51211.kernel@kolivas.org> <1132236943.5834.70.camel@localhost> In-Reply-To: <1132236943.5834.70.camel@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200511180119.01250.kernel@kolivas.org> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 713 Lines: 20 On Fri, 18 Nov 2005 01:15, Dave Hansen wrote: > On Fri, 2005-11-18 at 00:59 +1100, Con Kolivas wrote: > > +static inline int is_dma(struct zone *zone) > > +{ > > + return zone == zone->zone_pgdat->node_zones + ZONE_DMA; > > +} > > Any reason you can't just use 'zone_idx(z) == ZONE_DMA' here, just like > the code you replaced? I was just following the style of the is_highmem and is_normal immediately preceeding this. No strong reason otherwise. Cheers, Con - 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/