Re: hash table sizes

From: William Lee Irwin III
Date: Tue Nov 25 2003 - 08:43:29 EST


On Tue, Nov 25, 2003 at 08:35:49AM -0500, Jes Sorensen wrote:
> + mempages >>= (23 - (PAGE_SHIFT - 1));
> + order = max(2, fls(mempages));
> + order = min(12, order);

This is curious; what's 23 - (PAGE_SHIFT - 1) supposed to represent?


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