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

fs/btrfs/transaction.c

index e86cbad45bd54fab9735dfb4beb32f988124fa91..cfc08ef9b87648e4ec63156e32ef84e0424c76e3 100644 (file)
@@ -1636,10 +1636,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);