summaryrefslogtreecommitdiffstats
path: root/fs/ext4
diff options
context:
space:
mode:
authorFengguang Wu <wfg@mail.ustc.edu.cn>2007-07-19 10:48:06 +0200
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-07-19 19:04:44 +0200
commitd8983910a4045fa21022cfccf76ed13eb40fd7f5 (patch)
tree81902a5157ace03a94aa4b62599a20bc87f7a1c0 /fs/ext4
parentreadahead: move synchronous readahead call out of splice loop (diff)
downloadlinux-d8983910a4045fa21022cfccf76ed13eb40fd7f5.tar.xz
linux-d8983910a4045fa21022cfccf76ed13eb40fd7f5.zip
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 'fs/ext4')
0 files changed, 0 insertions, 0 deletions