]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: fix missing check before disabling quota
authorWang Shilong <wangsl-fnst@cn.fujitsu.com>
Wed, 20 Feb 2013 14:16:14 +0000 (14:16 +0000)
committerJosef Bacik <jbacik@fusionio.com>
Wed, 20 Feb 2013 18:00:07 +0000 (13:00 -0500)
commit7dae1debc02dffbb97ad473bf3a6c1ff2ebbd94b
treee2ed3c2cb509502daef0bbe149c53b1f0f7a9342
parentd9bb75701f2e5c9b4025bdb2d3a085ca8c539b9d
Btrfs: fix missing check before disabling quota

The original code forget to check whether quota has been disabled firstly,
and it will return 'EINVAL' and return error to users if quota has been
disabled,it will be unfriendly and confusing for users to see that.
So just return directly if quota has been disabled.

Signed-off-by: Wang Shilong <wangsl-fnst@cn.fujitsu.com>
Cc: Arne Jansen <sensille@gmx.net>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/qgroup.c