Re: [patch 05/19] split LRU lists into anon & file sets

From: Rik van Riel
Date: Fri Jan 11 2008 - 11:06:48 EST


On Fri, 11 Jan 2008 10:50:09 -0500
Lee Schermerhorn <Lee.Schermerhorn@xxxxxx> wrote:

> Again, my doing. I agree that the calculation is a bit strange, but I
> wanted to "future-proof" this function in case we ever get to a value of
> '6' for the lru_list enum. In that case, the AND will evaluate to
> non-zero for what may not be a file LRU. Between the build time
> assertion and the division [which could just be a 'l >> 1', I suppose]
> we should be safe.

Good point. I did not guess that.

I'll restore the code to your original test.

--
All rights reversed.
--
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/