[PATCH] splice: be smarter about calling do_page_cache_readahead()
commit0b749ce3802428007a37870eb51ba3c0bdf90857
authorJens Axboe <axboe@suse.de>
Mon, 10 Apr 2006 07:05:04 +0000 (10 09:05 +0200)
committerJens Axboe <axboe@suse.de>
Mon, 10 Apr 2006 07:05:04 +0000 (10 09:05 +0200)
tree8e3a2278fab3dae95310570ea54d0dfee1af9fe5
parent49d0b21be21efc07526d637e0ae935019667e532
[PATCH] splice: be smarter about calling do_page_cache_readahead()

We don't want to call into the read-ahead logic unless we are at the
start of a page, _or_ we have multiple pages to read.

Signed-off-by: Jens Axboe <axboe@suse.de>
fs/splice.c