diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index 48c357223e560436ff224e0d5d9e7f74cb8e561c..7f25ff1c3854fb5680c7f5456b3e81a369f8659e 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c @@ -2677,8 +2677,8 @@ static int btrfs_relocate_sys_chunks(struct btrfs_root *root) found_key.offset); if (ret == -ENOSPC) failed++; - else if (ret) - BUG(); + else + BUG_ON(ret); } if (found_key.offset == 0)