Re: [PATCH 3/4] btrfs: introduce new EXTENT_CLEAR_DATA_RESV flag

2016-07-20 Thread Wang Xiaoguang
hello, On 07/20/2016 09:22 PM, Josef Bacik wrote: On 07/20/2016 01:56 AM, Wang Xiaoguang wrote: In next patch, btrfs_clear_bit_hook() will not call btrfs_free_reserved_data_space_noquota() to update btrfs_space_info's bytes_may_use unless it has EXTENT_DO_ACCOUNTING or EXTENT_CLEAR_DATA_RESV,

Re: [PATCH 3/4] btrfs: introduce new EXTENT_CLEAR_DATA_RESV flag

2016-07-20 Thread Josef Bacik
On 07/20/2016 01:56 AM, Wang Xiaoguang wrote: In next patch, btrfs_clear_bit_hook() will not call btrfs_free_reserved_data_space_noquota() to update btrfs_space_info's bytes_may_use unless it has EXTENT_DO_ACCOUNTING or EXTENT_CLEAR_DATA_RESV, as for the reason, please see the next patch for deta

[PATCH 3/4] btrfs: introduce new EXTENT_CLEAR_DATA_RESV flag

2016-07-19 Thread Wang Xiaoguang
In next patch, btrfs_clear_bit_hook() will not call btrfs_free_reserved_data_space_noquota() to update btrfs_space_info's bytes_may_use unless it has EXTENT_DO_ACCOUNTING or EXTENT_CLEAR_DATA_RESV, as for the reason, please see the next patch for detailed info. As we know, usually EXTENT_DO_ACCOUN