[PATCH 07/19] btrfs: qgroup: Introduce function to release reserved range

2015-09-08 Thread Qu Wenruo
Introduce new function release_data_range() to release reserved ranges. It will iterate through all existing ranges and remove/shrink them. Note this function will not free reserved space, as the range can be released in the following conditions: 1) The dirty range gets written to disk. In

[PATCH 07/19] btrfs: qgroup: Introduce function to release reserved range

2015-09-08 Thread Qu Wenruo
Introduce new function release_data_range() to release reserved ranges. It will iterate through all existing ranges and remove/shrink them. Note this function will not free reserved space, as the range can be released in the following conditions: 1) The dirty range gets written to disk. In