Skip to content

Commit

Permalink
readahead: increase interleaved readahead size
Browse files Browse the repository at this point in the history
Make sure interleaved readahead size is larger than request size.  This
also makes the readahead window grow up more quickly.

Reported-by: Xu Chenfeng <[email protected]>
Signed-off-by: Wu Fengguang <[email protected]>
Cc: Ying Han <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Wu Fengguang authored and torvalds committed Jun 17, 2009
1 parent caca7cb commit 160334a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mm/readahead.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 160334a

Please sign in to comment.