diff options
| author | Daniel J Blueman <daniel@quora.org> | 2012-04-27 12:41:46 -0400 |
|---|---|---|
| committer | Chris Mason <chris.mason@oracle.com> | 2012-04-27 13:55:14 -0400 |
| commit | 7654b72417e10e294563496e25211200f9b8b6d3 (patch) | |
| tree | 5ca24ea9bb735133c0e09a789d3eb50d9a8b69b4 | |
| parent | 1f699d38b6556c393ac80f1c23c2053502a51631 (diff) | |
Btrfs: Fix space checking during fs resize
Fix out-of-space checking, addressing a warning and potential resource
leak when resizing the filesystem down while allocating blocks.
Signed-off-by: Daniel J Blueman <daniel@quora.org>
Reviewed-by: Josef Bacik <josef@redhat.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
| -rw-r--r-- | fs/btrfs/relocation.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/relocation.c b/fs/btrfs/relocation.c index 5a105a086acf..646ee21bb035 100644 --- a/fs/btrfs/relocation.c +++ b/fs/btrfs/relocation.c | |||
| @@ -3813,7 +3813,7 @@ restart: | |||
| 3813 | 3813 | ||
| 3814 | ret = btrfs_block_rsv_check(rc->extent_root, rc->block_rsv, 5); | 3814 | ret = btrfs_block_rsv_check(rc->extent_root, rc->block_rsv, 5); |
| 3815 | if (ret < 0) { | 3815 | if (ret < 0) { |
| 3816 | if (ret != -EAGAIN) { | 3816 | if (ret != -ENOSPC) { |
| 3817 | err = ret; | 3817 | err = ret; |
| 3818 | WARN_ON(1); | 3818 | WARN_ON(1); |
| 3819 | break; | 3819 | break; |
