On 6/9/20 9:04 PM, Qu Wenruo wrote:
Before this patch, btrfs qgroup completely relies on per-inode extent io tree to detect reserved data space leakage. However previous bug has already shown how release page before btrfs_finish_ordered_io() could lead to leakage, and since it's QGROUP_RESERVED bit cleared without triggering qgroup rsv, it can't be detected by per-inode extent io tree. So this patch adds another (and hopefully the final) safe net to catch qgroup data reserved space leakage. At least the new safe net catches all the leakage during development, so it should be pretty useful in the real world. Signed-off-by: Qu Wenruo <wqu@xxxxxxxx>
Reviewed-by: Josef Bacik <josef@xxxxxxxxxxxxxx> Thanks, Josef
