diff --git a/mm/readahead.c b/mm/readahead.c index bd0f0e88b0a124a2872a349287fb2cf4e36d2f48..56731158309b3c0415e105b615dfde18707c301e 100644 --- a/mm/readahead.c +++ b/mm/readahead.c @@ -395,7 +395,7 @@ ondemand_readahead(struct address_space *mapping, pgoff_t start; rcu_read_lock(); - start = radix_tree_next_hole(&mapping->page_tree, offset,max+1); + start = radix_tree_next_hole(&mapping->page_tree, offset+1,max); rcu_read_unlock(); if (!start || start - offset > max)