summaryrefslogtreecommitdiff
path: root/image
diff options
context:
space:
mode:
authorQu Wenruo <quwenruo@cn.fujitsu.com>2017-06-13 17:19:18 +0800
committerDavid Sterba <dsterba@suse.com>2017-07-12 17:52:15 +0200
commita30579b1a7a73dd547330d4bfade3bee64145ef5 (patch)
tree1e230c1a7c0bc9704d0a8712bbc1f8f0f5169ca8 /image
parent3e611c698386db7d8ec998caf3ee0ce5b40d1e9b (diff)
btrfs-progs: Refactor btrfs_num_copies to use btrfs_fs_info
Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'image')
-rw-r--r--image/main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/image/main.c b/image/main.c
index 5fb62e77..a84b10ed 100644
--- a/image/main.c
+++ b/image/main.c
@@ -884,8 +884,7 @@ static int read_data_extent(struct metadump_struct *md,
int cur_mirror;
int ret;
- num_copies = btrfs_num_copies(&root->fs_info->mapping_tree, logical,
- bytes_left);
+ num_copies = btrfs_num_copies(root->fs_info, logical, bytes_left);
/* Try our best to read data, just like read_tree_block() */
for (cur_mirror = 0; cur_mirror < num_copies; cur_mirror++) {