Btrfs: return error code in btrfs_check_trunc_cache_free_space()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Tue, 21 May 2013 02:39:21 +0000 (02:39 +0000)
committerJosef Bacik <jbacik@fusionio.com>
Fri, 14 Jun 2013 15:29:56 +0000 (11:29 -0400)
commit4b286cd1f51a9cb6056269dd50ba4745b2622df4
treed1a64a1ec1cdb8834add53d7c5651d64bfd924df
parent139f807a1eba1e484941a98fb93ee32ad859a6a1
Btrfs: return error code in btrfs_check_trunc_cache_free_space()

Fix to return error code instead always return 0 from function
btrfs_check_trunc_cache_free_space().
Introduced by commit 7b61cd92242542944fc27024900c495a6a7b3396
(Btrfs: don't use global block reservation for inode cache truncation)

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Reviewed-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/free-space-cache.c