OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee6e650
)
btrfs_next_leaf: do readahead when skip_locking is turned on
author
Chris Mason
<chris.mason@oracle.com>
Thu, 17 Jul 2008 16:54:43 +0000
(12:54 -0400)
committer
Chris Mason
<chris.mason@oracle.com>
Thu, 25 Sep 2008 15:04:04 +0000
(11:04 -0400)
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/ctree.c
patch
|
blob
|
history
diff --git
a/fs/btrfs/ctree.c
b/fs/btrfs/ctree.c
index
bbf9bf3
..
cdc7130
100644
(file)
--- a/
fs/btrfs/ctree.c
+++ b/
fs/btrfs/ctree.c
@@
-3206,7
+3206,8
@@
int btrfs_next_leaf(struct btrfs_root *root, struct btrfs_path *path)
free_extent_buffer(next);
}
- if (level == 1 && path->locks[1] && path->reada)
+ if (level == 1 && (path->locks[1] || path->skip_locking) &&
+ path->reada)
reada_for_search(root, path, level, slot, 0);
next = read_node_slot(root, c, slot);