summaryrefslogtreecommitdiff
path: root/btrfs-map-logical.c
diff options
context:
space:
mode:
authorjames harvey <jamespharvey20@gmail.com>2018-06-07 03:20:02 -0400
committerDavid Sterba <dsterba@suse.com>2018-08-06 15:03:27 +0200
commitef00e4264c6d113e4ba2d377520ff61d5775be39 (patch)
tree55782a51ba0c7c0f8abd7514d713d6fcc4d495b0 /btrfs-map-logical.c
parent078e9a1cc973e042ad8fde2d84e0db62fee9c45a (diff)
btrfs-progs: map-logical: Use btrfs_next_extent_item
btrfs_next_extent_item() looks for BTRFS_EXTENT_ITEM_KEY and BTRFS_METADATA_KEY, which are the types we're looking for. Signed-off-by: James Harvey <jamespharvey20@gmail.com> Reviewed-by: Su Yue <suy.fnst@cn.fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'btrfs-map-logical.c')
-rw-r--r--btrfs-map-logical.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/btrfs-map-logical.c b/btrfs-map-logical.c
index 4508f365..cad4afc3 100644
--- a/btrfs-map-logical.c
+++ b/btrfs-map-logical.c
@@ -75,7 +75,8 @@ again:
ret = btrfs_previous_extent_item(fs_info->extent_root,
path, 0);
else
- ret = btrfs_next_item(fs_info->extent_root, path);
+ ret = btrfs_next_extent_item(fs_info->extent_root,
+ path, 0);
if (ret)
goto out;
goto again;