Re: [PATCH 02/14] btrfs: qgroup: Introduce helpers to update and access new qgroup rsv

2017-12-21 Thread Nikolay Borisov
On 12.12.2017 09:34, Qu Wenruo wrote: > Introduce helpers to: > > 1) Get total reserved space >For limit calculation > 2) Add/release reserved space for given type >With underflow detection and warning > 3) Add/release reserved space according to child qgroup > > Signed-off-by: Qu Wenru

[PATCH 02/14] btrfs: qgroup: Introduce helpers to update and access new qgroup rsv

2017-12-11 Thread Qu Wenruo
Introduce helpers to: 1) Get total reserved space For limit calculation 2) Add/release reserved space for given type With underflow detection and warning 3) Add/release reserved space according to child qgroup Signed-off-by: Qu Wenruo --- fs/btrfs/qgroup.c | 68 +++