]> git.hungrycats.org Git - linux/commitdiff
zygo: btrfs: avoid crashing on a broken FS zygo-3.14.12-zb64
authorZygo Blaxell <zblaxell@serenity.furryterror.org>
Sat, 19 Jul 2014 14:25:54 +0000 (10:25 -0400)
committerZygo Blaxell <zblaxell@serenity.furryterror.org>
Sat, 19 Jul 2014 14:25:54 +0000 (10:25 -0400)
fs/btrfs/extent-tree.c

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