btrfs: qgroup: clear STATUS_FLAG_ON in disabling quota.
authorDongsheng Yang <yangds.fnst@cn.fujitsu.com>
Fri, 27 Feb 2015 08:24:26 +0000 (16:24 +0800)
committerChris Mason <clm@fb.com>
Mon, 13 Apr 2015 14:52:58 +0000 (07:52 -0700)
commit8ea0ec9e011eb542a3e7b1171776aa4877cf8a90
tree5f9cadb8ab87c751c5fe8cc7c0cde092282f0cfb
parent53b7cde9d5aa58cf7605664f0e34419156b02698
btrfs: qgroup: clear STATUS_FLAG_ON in disabling quota.

we forgot to clear STATUS_FLAG_ON in quota_disable(), it
will cause a problem shown as below:

# mount /dev/sdc /mnt
# btrfs quota enable /mnt
# btrfs quota disable /mnt
# btrfs quota rescan /mnt
quota rescan started <--- expecting it fail here.
# echo $?
0

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
Reviewed-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/qgroup.c