From: Jens Axboe Date: Mon, 1 May 2006 17:59:54 +0000 (+0200) Subject: [PATCH] splice: call handle_ra_miss() on failure to lookup page X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e27dedd84c119e2f7af54fcde3293be5ad812103;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git [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 --- diff --git a/fs/splice.c b/fs/splice.c index d7538d83c367..0a6916423e7d 100644 --- a/fs/splice.c +++ b/fs/splice.c @@ -301,6 +301,12 @@ __generic_file_splice_read(struct file *in, loff_t *ppos, */ page = find_get_page(mapping, index); if (!page) { + /* + * Make sure the read-ahead engine is notified + * about this failure. + */ + handle_ra_miss(mapping, &in->f_ra, index); + /* * page didn't exist, allocate one. */