]> git.hungrycats.org Git - linux/commitdiff
Revert "zygo: btrfs: check for dead roots" 2019-12-07
authorZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Sun, 8 Dec 2019 05:59:03 +0000 (00:59 -0500)
committerZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Sun, 8 Dec 2019 05:59:03 +0000 (00:59 -0500)
This reverts commit be7f1587feddf14a9070e7ccddc9e1d9d343f830.

fs/btrfs/relocation.c

index d0ed9c2e5460c77d8cfa49c22f10a1219b96fcc5..bcb9cb849523dbb74d3669a46c30098deeab083c 100644 (file)
@@ -4692,11 +4692,6 @@ int btrfs_reloc_post_snapshot(struct btrfs_trans_handle *trans,
        if (!root->reloc_root)
                return 0;
 
-       if (test_bit(BTRFS_ROOT_DEAD_RELOC_TREE, &root->reloc_root->state)) {
-               WARN_ON(1);
-               return 0;
-       }
-
        rc = root->fs_info->reloc_ctl;
        rc->merging_rsv_size += rc->nodes_relocated;