X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=fs%2Fbtrfs%2Fvolumes.c;h=19450bc536327c77f7add37e723b668da410eedd;hb=441c196e84b11aad3123baa9320eee7abc6b5c98;hp=1efa56e18f9b905ceac4dbcb3faa0221ab331ce2;hpb=075d9db13183c102770dc6cefabfee1b832f9614;p=~andy%2Flinux diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index 1efa56e18f9..19450bc5363 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c @@ -2098,7 +2098,8 @@ int btrfs_balance(struct btrfs_root *dev_root) chunk_root->root_key.objectid, found_key.objectid, found_key.offset); - BUG_ON(ret && ret != -ENOSPC); + if (ret && ret != -ENOSPC) + goto error; key.offset = found_key.offset - 1; } ret = 0;