]> git.hungrycats.org Git - linux/commit
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)
committerZygo Blaxell <zblaxell@thirteen.furryterror.org>
Sat, 4 Jul 2015 01:49:39 +0000 (21:49 -0400)
commit11bc5538713f03d22d1d93dff4ba233bd1b79f57
tree21183adc4ddc3846f994d7595632d3c5737b2008
parent64572b42fd4da2c0463b509371eced787f8d5c74
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>
(cherry picked from commit 9ac2b7cb4755cb3311bb7d1ccf0eb51d0e006fba)
fs/btrfs/relocation.c