mirror of
https://github.com/kdave/btrfs-progs
synced 2025-04-18 13:05:20 +00:00
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>
This commit is contained in:
parent
078e9a1cc9
commit
ef00e4264c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user