diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-07-08 23:25:45 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-07-08 23:25:45 -0700 |
commit | 1acc9309eb2674533944f48dbaaa53e7750e3947 (patch) | |
tree | 255f346c01a33906b612852d5fb008da1f4520da /fs/btrfs/volumes.c | |
parent | c2d197e82b6267fd3338f3fbcb12750ca9f5abda (diff) | |
parent | 149e2d76b4886c4c7ff5e077646a8ba3563c8026 (diff) | |
download | linux-1acc9309eb2674533944f48dbaaa53e7750e3947.tar.bz2 |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-unstable
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-unstable:
btrfs: fix oops when doing space balance
Btrfs: don't panic if we get an error while balancing V2
btrfs: add missing options displayed in mount output
Diffstat (limited to 'fs/btrfs/volumes.c')
-rw-r--r-- | fs/btrfs/volumes.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index 1efa56e18f9b..19450bc53632 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; |