Re: [PATCH] mm: is_dma_zone
From: Dave Hansen
Date: Thu Nov 17 2005 - 09:15:24 EST
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?
-- Dave
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/