summaryrefslogtreecommitdiffstats
path: root/lib/fdt_wip.c
diff options
context:
space:
mode:
authorWang Shilong <wangsl-fnst@cn.fujitsu.com>2013-04-17 16:49:51 +0200
committerJosef Bacik <jbacik@fusionio.com>2013-05-06 21:54:59 +0200
commit534e6623b7bc03ddcf6c98b9398ff512d5135fe5 (patch)
tree1f699427735afa1fa7ceb77863697703e434459f /lib/fdt_wip.c
parentBtrfs: fix missing check about ulist_add() in qgroup.c (diff)
downloadlinux-534e6623b7bc03ddcf6c98b9398ff512d5135fe5.tar.xz
linux-534e6623b7bc03ddcf6c98b9398ff512d5135fe5.zip
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 <wangsl-fnst@cn.fujitsu.com> Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Diffstat (limited to 'lib/fdt_wip.c')
0 files changed, 0 insertions, 0 deletions