]> git.hungrycats.org Git - linux/commitdiff
zygo: btrfs: don't need the merge_ref warning all the time
authorZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Tue, 30 Apr 2019 05:32:35 +0000 (01:32 -0400)
committerZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Tue, 4 Feb 2020 02:59:49 +0000 (21:59 -0500)
(cherry picked from commit 9d645400d3987be35397789556c6f80928af11e8)

fs/btrfs/delayed-ref.c

index afc2f3726dccfd7ce47cdcafe12a72ef0acd537f..beb28db4b3a601896b1d20072d88167c4dd67a15 100644 (file)
@@ -294,7 +294,7 @@ static bool merge_ref(struct btrfs_trans_handle *trans,
                        /*
                         * Can't have multiples of the same ref on a tree block.
                         */
-                       WARN_ON(ref->type == BTRFS_TREE_BLOCK_REF_KEY ||
+                       WARN_ON_ONCE(ref->type == BTRFS_TREE_BLOCK_REF_KEY ||
                                ref->type == BTRFS_SHARED_BLOCK_REF_KEY);
                }
        }