Re: [PATCH 1/2] readahead: simplify ra->size testing
From: Andrew Morton
Date: Wed Mar 02 2005 - 21:15:40 EST
Oleg Nesterov <oleg@xxxxxxxxxx> 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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/