Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 106189
b: refs/heads/master
c: 30002ed
h: refs/heads/master
i:
  106187: edfb1f3
v: v3
  • Loading branch information
Nick Piggin authored and Linus Torvalds committed Jul 26, 2008
1 parent eecc22d commit 03815f0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 652ea695364142b2464744746beac206d050ef19
refs/heads/master: 30002ed2e41830ec03ec3e577ad83ac6b188f96e
6 changes: 3 additions & 3 deletions trunk/mm/readahead.c
Original file line number Diff line number Diff line change
Expand Up @@ -382,9 +382,9 @@ ondemand_readahead(struct address_space *mapping,
if (hit_readahead_marker) {
pgoff_t start;

read_lock_irq(&mapping->tree_lock);
start = radix_tree_next_hole(&mapping->page_tree, offset, max+1);
read_unlock_irq(&mapping->tree_lock);
rcu_read_lock();
start = radix_tree_next_hole(&mapping->page_tree, offset,max+1);
rcu_read_unlock();

if (!start || start - offset > max)
return 0;
Expand Down

0 comments on commit 03815f0

Please sign in to comment.