Commit 160334a0 authored by Wu Fengguang's avatar Wu Fengguang Committed by Linus Torvalds

readahead: increase interleaved readahead size

Make sure interleaved readahead size is larger than request size.  This
also makes the readahead window grow up more quickly.
Reported-by: default avatarXu Chenfeng <xcf@ustc.edu.cn>
Signed-off-by: default avatarWu Fengguang <fengguang.wu@intel.com>
Cc: Ying Han <yinghan@google.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent caca7cb7
...@@ -403,6 +403,7 @@ ondemand_readahead(struct address_space *mapping, ...@@ -403,6 +403,7 @@ ondemand_readahead(struct address_space *mapping,
ra->start = start; ra->start = start;
ra->size = start - offset; /* old async_size */ ra->size = start - offset; /* old async_size */
ra->size += req_size;
ra->size = get_next_ra_size(ra, max); ra->size = get_next_ra_size(ra, max);
ra->async_size = ra->size; ra->async_size = ra->size;
goto readit; goto readit;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment