Re: Route cache performance under stress

From: Martin Josefsson (gandalf@wlug.westbo.se)
Date: Thu May 22 2003 - 06:15:39 EST


On Thu, 2003-05-22 at 12:40, David S. Miller wrote:

> +static unsigned long size_to_order(unsigned long size)
> +{
> + unsigned long order;
> +
> + for (order = 0; order < MAX_ORDER; order++) {
> + if ((PAGE_SIZE << order) >= size)
> + break;
> + }
> + return order;
> +}

Any reason you're not using get_order() ?

-- 
/Martin
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html



This archive was generated by hypermail 2b29 : Fri May 23 2003 - 22:00:03 EST