|
@@ -1940,12 +1940,11 @@ static noinline int find_dir_range(struct btrfs_root *root,
|
|
next:
|
|
next:
|
|
/* check the next slot in the tree to see if it is a valid item */
|
|
/* check the next slot in the tree to see if it is a valid item */
|
|
nritems = btrfs_header_nritems(path->nodes[0]);
|
|
nritems = btrfs_header_nritems(path->nodes[0]);
|
|
|
|
+ path->slots[0]++;
|
|
if (path->slots[0] >= nritems) {
|
|
if (path->slots[0] >= nritems) {
|
|
ret = btrfs_next_leaf(root, path);
|
|
ret = btrfs_next_leaf(root, path);
|
|
if (ret)
|
|
if (ret)
|
|
goto out;
|
|
goto out;
|
|
- } else {
|
|
|
|
- path->slots[0]++;
|
|
|
|
}
|
|
}
|
|
|
|
|
|
btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]);
|
|
btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]);
|