aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/root-tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/root-tree.c')
-rw-r--r--fs/btrfs/root-tree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/root-tree.c b/fs/btrfs/root-tree.c
index 271dd2b5c321..402f67821c14 100644
--- a/fs/btrfs/root-tree.c
+++ b/fs/btrfs/root-tree.c
@@ -135,8 +135,8 @@ int btrfs_find_dead_roots(struct btrfs_root *root)
135 if (btrfs_root_refs(ri) != 0) 135 if (btrfs_root_refs(ri) != 0)
136 goto next; 136 goto next;
137 dead_root = btrfs_read_fs_root_no_radix(root->fs_info, &key); 137 dead_root = btrfs_read_fs_root_no_radix(root->fs_info, &key);
138 if (IS_ERR(root)) { 138 if (IS_ERR(dead_root)) {
139 ret = PTR_ERR(root); 139 ret = PTR_ERR(dead_root);
140 goto err; 140 goto err;
141 } 141 }
142 ret = btrfs_add_dead_root(dead_root, 142 ret = btrfs_add_dead_root(dead_root,