]> 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>
Thu, 5 Dec 2019 18:51:04 +0000 (13:51 -0500)
(cherry picked from commit 5ff6289d3448990376cff625882caff854f13363)

fs/btrfs/transaction.c

index 59e26f66481c051421a7ab741fe39cdb3274ec93..2db14fdd6bff35eed7f98ae1612a547e63a46715 100644 (file)
@@ -1645,10 +1645,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;