Notify the readahead logic of the missing page. Suggested by
Oleg Nesterov.
Signed-off-by: Jens Axboe <axboe@suse.de>
*/
page = find_get_page(mapping, index);
if (!page) {
*/
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.
*/
/*
* page didn't exist, allocate one.
*/