Make sure interleaved readahead size is larger than request size. This also makes readahead window grow up more quickly. Reported-by: Xu Chenfeng <xcf@xxxxxxxxxxx> Signed-off-by: Wu Fengguang <fengguang.wu@xxxxxxxxx> --- mm/readahead.c | 1 + 1 file changed, 1 insertion(+) --- mm.orig/mm/readahead.c +++ mm/mm/readahead.c @@ -428,6 +428,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-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html