diff options
author | Jens Axboe <axboe@suse.de> | 2006-05-01 13:59:54 -0400 |
---|---|---|
committer | Jens Axboe <axboe@suse.de> | 2006-05-01 13:59:54 -0400 |
commit | e27dedd84c119e2f7af54fcde3293be5ad812103 (patch) | |
tree | b388be80b04dd3f04c07ec12955e62f8ccb58bbc | |
parent | 7f9c51f0d9783c78db5c2aa16806d0c256ac667f (diff) |
[PATCH] splice: call handle_ra_miss() on failure to lookup page
Notify the readahead logic of the missing page. Suggested by
Oleg Nesterov.
Signed-off-by: Jens Axboe <axboe@suse.de>
-rw-r--r-- | fs/splice.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/splice.c b/fs/splice.c index d7538d83c367..0a6916423e7d 100644 --- a/fs/splice.c +++ b/fs/splice.c | |||
@@ -302,6 +302,12 @@ __generic_file_splice_read(struct file *in, loff_t *ppos, | |||
302 | page = find_get_page(mapping, index); | 302 | page = find_get_page(mapping, index); |
303 | if (!page) { | 303 | if (!page) { |
304 | /* | 304 | /* |
305 | * Make sure the read-ahead engine is notified | ||
306 | * about this failure. | ||
307 | */ | ||
308 | handle_ra_miss(mapping, &in->f_ra, index); | ||
309 | |||
310 | /* | ||
305 | * page didn't exist, allocate one. | 311 | * page didn't exist, allocate one. |
306 | */ | 312 | */ |
307 | page = page_cache_alloc_cold(mapping); | 313 | page = page_cache_alloc_cold(mapping); |