aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/ctree.c')
-rw-r--r--fs/btrfs/ctree.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/btrfs/ctree.c b/fs/btrfs/ctree.c
index a83cbdf1d8c4..19c0dd33b1e8 100644
--- a/fs/btrfs/ctree.c
+++ b/fs/btrfs/ctree.c
@@ -813,7 +813,8 @@ static noinline int generic_bin_search(struct extent_buffer *eb,
813 unmap_extent_buffer(eb, map_token, KM_USER0); 813 unmap_extent_buffer(eb, map_token, KM_USER0);
814 map_token = NULL; 814 map_token = NULL;
815 } 815 }
816 err = map_extent_buffer(eb, offset, 816
817 err = map_private_extent_buffer(eb, offset,
817 sizeof(struct btrfs_disk_key), 818 sizeof(struct btrfs_disk_key),
818 &map_token, &kaddr, 819 &map_token, &kaddr,
819 &map_start, &map_len, KM_USER0); 820 &map_start, &map_len, KM_USER0);
@@ -3585,6 +3586,7 @@ int btrfs_search_forward(struct btrfs_root *root, struct btrfs_key *min_key,
3585 int level; 3586 int level;
3586 int ret = 1; 3587 int ret = 1;
3587 3588
3589 WARN_ON(!path->keep_locks);
3588again: 3590again:
3589 cur = btrfs_lock_root_node(root); 3591 cur = btrfs_lock_root_node(root);
3590 level = btrfs_header_level(cur); 3592 level = btrfs_header_level(cur);
@@ -3708,6 +3710,7 @@ int btrfs_find_next_key(struct btrfs_root *root, struct btrfs_path *path,
3708 int slot; 3710 int slot;
3709 struct extent_buffer *c; 3711 struct extent_buffer *c;
3710 3712
3713 WARN_ON(!path->keep_locks);
3711 while(level < BTRFS_MAX_LEVEL) { 3714 while(level < BTRFS_MAX_LEVEL) {
3712 if (!path->nodes[level]) 3715 if (!path->nodes[level])
3713 return 1; 3716 return 1;