[lkml]   [2008]   [Jan]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [patch 05/19] split LRU lists into anon & file sets
On Fri, 11 Jan 2008 10:50:09 -0500
Lee Schermerhorn <> 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.

 \ /
  Last update: 2008-01-11 17:09    [W:0.066 / U:0.344 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site