]> 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, 7 Dec 2019 01:12:48 +0000 (20:12 -0500)
(cherry picked from commit e211f1a58b80b8b752f0e6054af945d20f1a2f86)

fs/btrfs/transaction.c

index c87dbe05155e79629b00ea0603e7aec632b09a5f..e194d3e4e3a9a5196dc1d90a37b80eca471feb9e 100644 (file)
@@ -1638,10 +1638,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);