[PATCH 06/19] btrfs: qgroup: Introduce btrfs_qgroup_reserve_data function

2015-09-08 Thread Qu Wenruo
This new function will do all the hard work to reserve precious space for a write. The overall work flow will be the following. File A already has some dirty pages: 0 4K 8K 12K 16K |///| |///| And then, someone want to write some data into range [4K, 16K).

[PATCH 06/19] btrfs: qgroup: Introduce btrfs_qgroup_reserve_data function

2015-09-08 Thread Qu Wenruo
This new function will do all the hard work to reserve precious space for a write. The overall work flow will be the following. File A already has some dirty pages: 0 4K 8K 12K 16K |///| |///| And then, someone want to write some data into range [4K, 16K).