]> 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>
Sat, 14 Dec 2019 04:53:07 +0000 (23:53 -0500)
(cherry picked from commit de97fa43b71a6515cb574419e97c921878547752)
(cherry picked from commit 92038017ebf650b7dacce333ff7e6b91d296997c)

fs/btrfs/relocation.c

index 88b4d0225ffb157dd743bff9f9c5b29fc84d6a65..a313fffbb36651a4757e5c28b3973db8c74719f3 100644 (file)
@@ -524,6 +524,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)