]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: don't call btrfs_qgroup_free if just btrfs_qgroup_reserve fails
authorWang Shilong <wangsl-fnst@cn.fujitsu.com>
Fri, 1 Mar 2013 11:33:01 +0000 (11:33 +0000)
committerJosef Bacik <jbacik@fusionio.com>
Fri, 1 Mar 2013 15:13:04 +0000 (10:13 -0500)
commit4c53696a8bd266aabbe2f58b7d0f946701da1fdd
tree5c59752af695a18db6b8c421199424423364b73b
parent626e36ba61126e66aabeac2addb8786fdd106413
Btrfs: don't call btrfs_qgroup_free if just btrfs_qgroup_reserve fails

commit 56123759087a226e1461e1a140962c604af73767 leads into another bug.
If it is just because qgroup_reserve fails, the function btrfs_qgroup_free
should not be called, otherwise, it will cause the wrong quota accounting.

Signed-off-by: Wang Shilong <wangsl-fnst@cn.fujitsu.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/extent-tree.c