mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
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 <[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]>
This commit is contained in:
parent
caca7cb748
commit
160334a0cf
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue