diff options
author | Wu Fengguang <fengguang.wu@intel.com> | 2009-06-16 18:31:23 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-06-16 22:47:29 -0400 |
commit | 160334a0cfa8e578b718f81038026326845d07d7 (patch) | |
tree | 3c5b524faf23cdde4da1a3f2112de0c645206dba /mm | |
parent | caca7cb748571a5b39943a9b3e7081feef055e5e (diff) |
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 56731158309b..16378b90843e 100644 --- a/mm/readahead.c +++ b/mm/readahead.c | |||
@@ -403,6 +403,7 @@ ondemand_readahead(struct address_space *mapping, | |||
403 | 403 | ||
404 | ra->start = start; | 404 | ra->start = start; |
405 | ra->size = start - offset; /* old async_size */ | 405 | ra->size = start - offset; /* old async_size */ |
406 | ra->size += req_size; | ||
406 | ra->size = get_next_ra_size(ra, max); | 407 | ra->size = get_next_ra_size(ra, max); |
407 | ra->async_size = ra->size; | 408 | ra->async_size = ra->size; |
408 | goto readit; | 409 | goto readit; |