Messages in this thread | | | Date | Wed, 2 Mar 2005 17:59:47 -0800 | From | Andrew Morton <> | Subject | Re: [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/
| |