btrfs: qgroup: allow user to clear the limitation on qgroup
authorYang Dongsheng <yangds.fnst@cn.fujitsu.com>
Wed, 3 Jun 2015 06:57:32 +0000 (14:57 +0800)
committerChris Mason <clm@fb.com>
Tue, 30 Jun 2015 20:20:00 +0000 (13:20 -0700)
commitfe7599079b03d521d376da88920cc7b87f71ae25
treebfc39a59d14689e76f1ae893c5cea04cfae6956b
parent5a5003df98d5a7f6834227885b7c9728f767cc27
btrfs: qgroup: allow user to clear the limitation on qgroup

Currently, we can only set a limitation on a qgroup, but we
can not clear it.

This patch provide a choice to user to clear a limitation on
qgroup by passing a value of CLEAR_VALUE(-1) to kernel.

Reported-by: Tsutomu Itoh <t-itoh@jp.fujitsu.com>
Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
Tested-by: Tsutomu Itoh <t-itoh@jp.fujitsu.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/qgroup.c