]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: explicitly use global_block_rsv for quota_tree
authorStefan Behrens <sbehrens@giantdisaster.de>
Thu, 16 May 2013 14:48:19 +0000 (14:48 +0000)
committerJosef Bacik <jbacik@fusionio.com>
Sat, 18 May 2013 01:40:36 +0000 (21:40 -0400)
commit19949cae5422c848f85efdceee11b3934cf150fe
tree6f833c82426261bcc7588e048c1f2e00a878446d
parent429e9db9fd10a44a133c597adcf86a599f00428f
Btrfs: explicitly use global_block_rsv for quota_tree

The quota_tree was set up to use the empty_block_rsv before
which would be problematic when the filesystem is filled up
and ENOSPC happens during internal operations while the quota
tree is updated and COWed (when the btrfs_qgroup_info_item
items) are written. In fact, use_block_rsv() which is used
in btrfs_cow_block() falls back to the global_block_rsv in
this case. But just in order to make it more clear what is
happening, change it to explicitly use the global_block_rsv.

Signed-off-by: Stefan Behrens <sbehrens@giantdisaster.de>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/extent-tree.c