From: Wang Shilong Date: Wed, 17 Apr 2013 14:49:51 +0000 (+0000) Subject: Btrfs: add all ioctl checks before user change for quota operations X-Git-Tag: v3.10-rc1~31^2~39 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=534e6623b7bc03ddcf6c98b9398ff512d5135fe5;p=pandora-kernel.git Btrfs: add all ioctl checks before user change for quota operations Since all the quota configurations are loaded in memory, and we can have ioctl checks before operating in the disk. It is safe to do such things because qgroup_ioctl_lock is held outside. Without these extra checks firstly, it should be ok to do user change for quota operations. For example: if we want to add an existed qgroup, we will do: ->add_qgroup_item() ->add_qgroup_rb() add_qgroup_item() will return -EEXIST to us, however, qgroups are all in memory, why not check them in memory firstly. Signed-off-by: Wang Shilong Signed-off-by: Josef Bacik --- Reading git-diff-tree failed