lkml.org 
[lkml]   [2005]   [Mar]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/2] readahead: simplify ra->size testing
Oleg Nesterov <oleg@tv-sign.ru> wrote:
>
> On top of "readahead: cleanup blockable_page_cache_readahead()",
> see http://marc.theaimsgroup.com/?l=linux-kernel&m=110927049500942
>
> Currently page_cache_readahead() treats ra->size == 0 (first read)
> and ra->size == -1 (ra_off was called) separately, but does exactly
> the same in both cases.
>
> With this patch we may assume that the reading starts in 'ra_off()'
> state, so we don't need to consider the first read as a special case.

So... the big "how it all works" comment needs an update..
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:10    [W:0.029 / U:0.704 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site