commit | f59c0347d4be22dad5812b5b14bf94ac0efd371a | [log] [tgz] |
---|---|---|
author | Qu Wenruo <wqu@suse.com> | Tue Dec 12 15:34:24 2017 +0800 |
committer | David Sterba <dsterba@suse.com> | Sat Mar 31 01:41:13 2018 +0200 |
tree | 526802d8f61876cde2d2ebe69e34e6fef633bda6 | |
parent | d4e5c92055d8933e9a2030fcbe6d0dbbec538c58 [diff] |
btrfs: qgroup: Introduce helpers to update and access new qgroup rsv 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 <wqu@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>