diff options
author | Fengguang Wu <wfg@mail.ustc.edu.cn> | 2007-07-19 12:48:06 +0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-19 21:04:44 +0400 |
commit | d8983910a4045fa21022cfccf76ed13eb40fd7f5 (patch) | |
tree | 81902a5157ace03a94aa4b62599a20bc87f7a1c0 /include | |
parent | 431a4820bfcdf7ff530e745230bafb06c9bf2d6d (diff) | |
download | linux-d8983910a4045fa21022cfccf76ed13eb40fd7f5.tar.xz |
readahead: pass real splice size
Pass real splice size to page_cache_readahead_ondemand().
The splice code works in chunks of 16 pages internally. The readahead code
should be told of the overall splice size, instead of the internal chunk size.
Otherwize bad things may happen. Imagine some 17-page random splice reads.
The code before this patch will result in two readahead calls: readahead(16);
readahead(1); That leads to one 16-page I/O and one 32-page I/O: one extra I/O
and 31 readahead miss pages.
Signed-off-by: Fengguang Wu <wfg@mail.ustc.edu.cn>
Cc: Jens Axboe <jens.axboe@oracle.com>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions