path: root/cmds-restore.c
diff options
authorQu Wenruo <>2017-06-13 17:19:17 +0800
committerDavid Sterba <>2017-07-12 17:52:09 +0200
commit3e611c698386db7d8ec998caf3ee0ce5b40d1e9b (patch)
treee37d674501991b0a9647bfd85633f9edeb262585 /cmds-restore.c
parentd39731a53bb6212effc184719296e39f5200ee94 (diff)
btrfs-progs: Refactor btrfs_map_block and its variants to use btrfs_fs_info
Just to keep the 1st paramter the same as kernel. We can also save a few lines since the parameter is shorter now. Signed-off-by: Qu Wenruo <> Signed-off-by: David Sterba <>
Diffstat (limited to 'cmds-restore.c')
1 files changed, 2 insertions, 2 deletions
diff --git a/cmds-restore.c b/cmds-restore.c
index 06c88b26..9ee38c70 100644
--- a/cmds-restore.c
+++ b/cmds-restore.c
@@ -346,8 +346,8 @@ static int copy_one_extent(struct btrfs_root *root, int fd,
length = size_left;
- ret = btrfs_map_block(&root->fs_info->mapping_tree, READ,
- bytenr, &length, &multi, mirror_num, NULL);
+ ret = btrfs_map_block(root->fs_info, READ, bytenr, &length, &multi,
+ mirror_num, NULL);
if (ret) {
error("cannot map block logical %llu length %llu: %d",
(unsigned long long)bytenr,