Btrfs: fix wrong check for btrfs_force_chunk_alloc()
authorShilong Wang <wangshilong1991@gmail.com>
Sun, 12 Apr 2015 06:35:20 +0000 (14:35 +0800)
committerChris Mason <clm@fb.com>
Thu, 2 Jul 2015 00:17:22 +0000 (17:17 -0700)
commit9689457b5b0a2b69874c421a489d3fb50ca76b7b
tree754a94f1914b827ee205ca314871976321598cf4
parentddba1bfc2369cd0566bcfdab47599834a32d1c19
Btrfs: fix wrong check for btrfs_force_chunk_alloc()

btrfs_force_chunk_alloc() return 1 for allocation chunk successfully.
This problem exists since commit c87f08ca4.

With this patch, we might fix some enospc problems for balances.

Signed-off-by: Wang Shilong <wangshilong1991@gmail.com>
Reviewed-by: Filipe Manana <fdmanana@suse.com>
Tested-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/relocation.c