Re: Route cache performance under stress

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux