diff options
author | David Sterba <dsterba@suse.com> | 2017-08-25 16:54:16 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-09-08 16:15:05 +0200 |
commit | 98909c21d7725f622991e6fc7634544878fe5ab9 (patch) | |
tree | f4cae1b0a68b398efc47a690ebfd878094cdcbb6 /cmds-restore.c | |
parent | 1fa9653dc809ca05c21a2127c9faf15f04bd8ef8 (diff) |
btrfs-progs: drop blocksize from read_tree_block
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'cmds-restore.c')
-rw-r--r-- | cmds-restore.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/cmds-restore.c b/cmds-restore.c index c174bdd5..ebc5e5ab 100644 --- a/cmds-restore.c +++ b/cmds-restore.c @@ -1255,7 +1255,7 @@ static struct btrfs_root *open_fs(const char *dev, u64 root_location, root_location = btrfs_super_root(fs_info->super_copy); generation = btrfs_super_generation(fs_info->super_copy); root->node = read_tree_block(fs_info, root_location, - fs_info->nodesize, generation); + generation); if (!extent_buffer_uptodate(root->node)) { fprintf(stderr, "Error opening tree root\n"); close_ctree(root); @@ -1501,8 +1501,7 @@ int cmd_restore(int argc, char **argv) if (fs_location != 0) { free_extent_buffer(root->node); - root->node = read_tree_block(root->fs_info, fs_location, - root->fs_info->nodesize, 0); + root->node = read_tree_block(root->fs_info, fs_location, 0); if (!extent_buffer_uptodate(root->node)) { fprintf(stderr, "Failed to read fs location\n"); ret = 1; |