diff options
author | Wu Fengguang <fengguang.wu@intel.com> | 2009-06-16 22:31:23 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-06-17 02:47:29 (GMT) |
commit | 160334a0cfa8e578b718f81038026326845d07d7 (patch) | |
tree | 3c5b524faf23cdde4da1a3f2112de0c645206dba /mm | |
parent | caca7cb748571a5b39943a9b3e7081feef055e5e (diff) | |
download | linux-160334a0cfa8e578b718f81038026326845d07d7.tar.xz |
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: Xu Chenfeng <xcf@ustc.edu.cn>
Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
Cc: Ying Han <yinghan@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/readahead.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mm/readahead.c b/mm/readahead.c index 5673115..16378b9 100644 --- a/mm/readahead.c +++ b/mm/readahead.c @@ -403,6 +403,7 @@ ondemand_readahead(struct address_space *mapping, 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; |