From: Wang Shilong Date: Sun, 7 Apr 2013 10:50:17 +0000 (+0000) Subject: Btrfs: remove some unnecessary spin_lock usages X-Git-Tag: v3.10-rc1~31^2~67 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=58400fce5ac5939aadac8ce682edc192c6172f80;p=pandora-kernel.git Btrfs: remove some unnecessary spin_lock usages We use mutex lock to protect all the user change operations. So when we are calling find_qgroup_rb() to check whether qgroup exists, we don't have to hold spin_lock. Besides, when enabling/disabling quota, it must be single thread when operations come here. spin lock must be firstly used to clear quota_root when disabling quota, while enabling quota, spin lock must be used to complete the last assign work. Signed-off-by: Wang Shilong Reviewed-by: Miao Xie Signed-off-by: Josef Bacik --- Reading git-diff-tree failed