btrfs: qgroup: fix limit args override whole limit struct
authorDongsheng Yang <yangds.fnst@cn.fujitsu.com>
Fri, 6 Feb 2015 16:06:25 +0000 (11:06 -0500)
committerChris Mason <clm@fb.com>
Mon, 13 Apr 2015 14:52:43 +0000 (07:52 -0700)
commit03477d945f13a284d35a757b2c2323d165d5cd81
tree7befa6fb9c024b74a475078af36632728a34a509
parentd3001ed3a82ec2696bb13c78092d0a3460003fd7
btrfs: qgroup: fix limit args override whole limit struct

btrfs_limit_group use arg limit to override the old qgroup_limit of
corresponding qgroup. However, we should override part of old qgroup_limit
according to the bit which has been set in arg limit.

Signed-off-by: Fan Chengniang <fancn.fnst@cn.fujitsu.com>
Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/qgroup.c