]> git.hungrycats.org Git - linux/commitdiff
zygo: btrfs: get rid of this WARN_ON, it just triggers useless KASANs
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:45 +0000 (20:12 -0500)
(cherry picked from commit 5ff6289d3448990376cff625882caff854f13363)

fs/btrfs/transaction.c

index 9f0b1b045cc50490eb888f0794d1948d473d9935..c87dbe05155e79629b00ea0603e7aec632b09a5f 100644 (file)
@@ -1733,10 +1733,6 @@ static noinline int create_pending_snapshots(struct btrfs_trans_handle *trans)
 
        list_for_each_entry_safe(pending, next, head, list) {
                list_del(&pending->list);
-               WARN_ON(!pending->root);
-               if (pending->root->reloc_root) {
-                       WARN_ON(!pending->root->reloc_root->node);
-               }
                ret = create_pending_snapshot(trans, pending);
                if (ret)
                        break;