Make sure interleaved readahead size is larger than request size. This also makes readahead window grow up more quickly. Reported-by: Xu Chenfeng Signed-off-by: Wu Fengguang --- mm/readahead.c | 1 + 1 file changed, 1 insertion(+) --- mm.orig/mm/readahead.c +++ mm/mm/readahead.c @@ -403,6 +403,7 @@ ondemand_readahead(struct address_space ra->start = start; ra->size = start - offset; /* old async_size */ + ra->size += req_size; ra->size = get_next_ra_size(ra, max); ra->async_size = ra->size; goto readit; -- -- 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/