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.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/btrfs/root-tree.c b/fs/btrfs/root-tree.c
index e3984f902e71..0091c01abb06 100644
--- a/fs/btrfs/root-tree.c
+++ b/fs/btrfs/root-tree.c
@@ -210,7 +210,10 @@ again:
210 goto err; 210 goto err;
211 } 211 }
212 212
213 ret = btrfs_add_dead_root(dead_root, latest); 213 if (objectid == BTRFS_TREE_RELOC_OBJECTID)
214 ret = btrfs_add_dead_reloc_root(dead_root);
215 else
216 ret = btrfs_add_dead_root(dead_root, latest);
214 if (ret) 217 if (ret)
215 goto err; 218 goto err;
216 goto again; 219 goto again;