]> git.hungrycats.org Git - linux/commitdiff
Revert "zygo: btrfs: avoid crashing on a broken FS"
authorZygo Blaxell <zblaxell@serenity.furryterror.org>
Thu, 14 Aug 2014 18:40:16 +0000 (14:40 -0400)
committerZygo Blaxell <zblaxell@serenity.furryterror.org>
Thu, 14 Aug 2014 18:40:16 +0000 (14:40 -0400)
This reverts commit 20beb24e505e098a5775da1e18bbd2e17ffa21f5.

fs/btrfs/extent-tree.c

index 6aba318823edd773b1a0a2f47b604e172d982ed5..3ff98e23f65179789307fa97ebd85b3f10a149de 100644 (file)
@@ -7111,8 +7111,7 @@ static noinline void reada_walk_down(struct btrfs_trans_handle *trans,
                /* We don't care about errors in readahead. */
                if (ret < 0)
                        continue;
-/* zblaxell: Meh.  We were deleting it anyway. */
-               WARN_ON(refs == 0);
+               BUG_ON(refs == 0);
 
                if (wc->stage == DROP_REFERENCE) {
                        if (refs == 1)