]> git.hungrycats.org Git - linux/commitdiff
zygo: btrfs: get rid of this WARN_ON, it just triggers useless KASANs and slab-oobs
authorZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Thu, 5 Dec 2019 16:16:17 +0000 (11:16 -0500)
committerZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Thu, 5 Dec 2019 18:50:55 +0000 (13:50 -0500)
(cherry picked from commit e211f1a58b80b8b752f0e6054af945d20f1a2f86)

fs/btrfs/transaction.c

index f1ff723483d27a8b12abebf36a490576c1a8cdad..59e26f66481c051421a7ab741fe39cdb3274ec93 100644 (file)
@@ -1554,10 +1554,6 @@ static noinline int create_pending_snapshot(struct btrfs_trans_handle *trans,
                goto fail;
        }
 
-       WARN_ON(!pending->root);
-       if (pending->root->reloc_root) {
-               WARN_ON(!pending->root->reloc_root->node);
-       }
        ret = btrfs_reloc_post_snapshot(trans, pending);
        if (ret) {
                btrfs_abort_transaction(trans, ret);