summaryrefslogtreecommitdiff
path: root/fs/btrfs/free-space-tree.c
diff options
context:
space:
mode:
authorJeff Mahoney <jeffm@suse.com>2017-08-17 17:25:11 +0300
committerDavid Sterba <dsterba@suse.com>2017-08-21 18:49:54 +0300
commit1cd5447eb677822c5c22bb52161c2105507dcce0 (patch)
tree04e4163472d70b0679931b5adefbe232fb0a95b0 /fs/btrfs/free-space-tree.c
parent64ecdb647ddb83dcff9c8e2a5c40119f171ea004 (diff)
downloadlinux-1cd5447eb677822c5c22bb52161c2105507dcce0.tar.xz
btrfs: pass fs_info to btrfs_del_root instead of tree_root
btrfs_del_roots always uses the tree_root. Let's pass fs_info instead. Signed-off-by: Jeff Mahoney <jeffm@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/free-space-tree.c')
-rw-r--r--fs/btrfs/free-space-tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/free-space-tree.c b/fs/btrfs/free-space-tree.c
index a5e34de06c2f..684f12247db7 100644
--- a/fs/btrfs/free-space-tree.c
+++ b/fs/btrfs/free-space-tree.c
@@ -1257,7 +1257,7 @@ int btrfs_clear_free_space_tree(struct btrfs_fs_info *fs_info)
if (ret)
goto abort;
- ret = btrfs_del_root(trans, tree_root, &free_space_root->root_key);
+ ret = btrfs_del_root(trans, fs_info, &free_space_root->root_key);
if (ret)
goto abort;