]> git.hungrycats.org Git - linux/commitdiff
zygo: btrfs: check for DEAD_RELOC_TREE in fs/btrfs/relocation.c
authorZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Wed, 4 Dec 2019 06:39:41 +0000 (01:39 -0500)
committerZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Sun, 8 Dec 2019 03:18:35 +0000 (22:18 -0500)
(cherry picked from commit de97fa43b71a6515cb574419e97c921878547752)
(cherry picked from commit 92038017ebf650b7dacce333ff7e6b91d296997c)

fs/btrfs/relocation.c

index 782b5dc6befc0b924bd36c209d6706c4f20703b4..d4887a1e43d3b14bedee957b1657502bdab73fff 100644 (file)
@@ -520,6 +520,10 @@ static int should_ignore_root(struct btrfs_root *root)
 
        if (!test_bit(BTRFS_ROOT_REF_COWS, &root->state))
                return 0;
+       if (test_bit(BTRFS_ROOT_DEAD_RELOC_TREE, &root->state)) {
+               WARN_ON(1);
+               return 0;
+       }
 
        reloc_root = root->reloc_root;
        if (!reloc_root)