diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index 48c357223e56..7f25ff1c3854 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c @@ -2677,8 +2677,8 @@ again: found_key.offset); if (ret == -ENOSPC) failed++; - else if (ret) - BUG(); + else + BUG_ON(ret); } if (found_key.offset == 0)