Re: [PATCH] zonelists gfp_zone() is really gfp_zonelist()

From: Dave Hansen
Date: Tue Jan 17 2006 - 12:30:11 EST


On Tue, 2006-01-17 at 15:50 +0000, Andy Whitcroft wrote:
> +/*
> + * Extract the gfp modifier space index from the flags word. Note that
> + * this is not a zone number.
> + */
> +static inline int gfp_zonelist(gfp_t gfp)
> {
> - int zone = GFP_ZONEMASK & (__force int) gfp;
> - BUG_ON(zone >= GFP_ZONETYPES);
> - return zone;
> + int zonelist = GFP_ZONEMASK & (__force int) gfp;
> + BUG_ON(zonelist >= GFP_ZONETYPES);
> + return zonelist;
> }

Hmm, but it's not really a zonelist, either. It's an index into an
array of zonelists that gets you a zonelist. How about
gfp_to_zonelist_nr()?

-- 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/