diff options
Diffstat (limited to 'mm/readahead.c')
-rw-r--r-- | mm/readahead.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/readahead.c b/mm/readahead.c index bd0f0e88b0a1..56731158309b 100644 --- a/mm/readahead.c +++ b/mm/readahead.c | |||
@@ -395,7 +395,7 @@ ondemand_readahead(struct address_space *mapping, | |||
395 | pgoff_t start; | 395 | pgoff_t start; |
396 | 396 | ||
397 | rcu_read_lock(); | 397 | rcu_read_lock(); |
398 | start = radix_tree_next_hole(&mapping->page_tree, offset,max+1); | 398 | start = radix_tree_next_hole(&mapping->page_tree, offset+1,max); |
399 | rcu_read_unlock(); | 399 | rcu_read_unlock(); |
400 | 400 | ||
401 | if (!start || start - offset > max) | 401 | if (!start || start - offset > max) |