]> Pileus Git - ~andy/linux/commit
Btrfs: move btrfs_free_qgroup_config() out of spin_lock and fix comments
authorWang Shilong <wangsl.fnst@cn.fujitsu.com>
Wed, 14 Aug 2013 01:13:37 +0000 (09:13 +0800)
committerChris Mason <chris.mason@fusionio.com>
Sun, 1 Sep 2013 12:15:46 +0000 (08:15 -0400)
commite685da14af6b31e4b336a110cb1bae1afc268be8
treee367ef4e9e61e5efcbb4a2f106144240bbd448ad
parent4082bd3d734c41b122a91d2a5aded4b76baa84b2
Btrfs: move btrfs_free_qgroup_config() out of spin_lock and fix comments

btrfs_free_qgroup_config() is not only called by open/close_ctree(),but
also btrfs_disable_quota().And for btrfs_disable_quota(),we have set
'quota_root' to be null before calling btrfs_free_qgroup_config(),so it
is safe to cleanup in-memory structures without lock held.

Signed-off-by: Wang Shilong <wangsl.fnst@cn.fujitsu.com>
Reviewed-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/qgroup.c