On 6.12.18 г. 19:54 ч., David Sterba wrote: > On Thu, Dec 06, 2018 at 06:52:21PM +0200, Nikolay Borisov wrote: >> >> >> On 3.12.18 г. 17:20 ч., Josef Bacik wrote: >>> Now with the delayed_refs_rsv we can now know exactly how much pending >>> delayed refs space we need. This means we can drastically simplify >> >> IMO it will be helpful if there is a sentence here referring back to >> btrfs_update_delayed_refs_rsv to put your first sentence into context. >> But I guess this is something David can also do. > > I'll update the changelog, but I'm not sure what exactly you want to see > there, please post the replacement text. Thanks. With the introduction of dealyed_refs_rsv infrastructure, namely btrfs_update_delayed_refs_rsv we now know exactly how much pending delayed refs space is required. > >>> btrfs_check_space_for_delayed_refs by simply checking how much space we >>> have reserved for the global rsv (which acts as a spill over buffer) and >>> the delayed refs rsv. If our total size is beyond that amount then we >>> know it's time to commit the transaction and stop any more delayed refs >>> from being generated. >>> >>> Signed-off-by: Josef Bacik <jo...@toxicpanda.com> >
- [PATCH 01/10] btrfs: add btrfs_delete_ref_head helper Josef Bacik
- Re: [PATCH 01/10] btrfs: add btrfs_delete_ref_head he... Nikolay Borisov
- [PATCH 07/10] btrfs: add new flushing states for the delay... Josef Bacik
- [PATCH 02/10] btrfs: add cleanup_ref_head_accounting helpe... Josef Bacik
- Re: [PATCH 02/10] btrfs: add cleanup_ref_head_account... Nikolay Borisov
- [PATCH 06/10] btrfs: update may_commit_transaction to use ... Josef Bacik
- Re: [PATCH 06/10] btrfs: update may_commit_transactio... Nikolay Borisov
- [PATCH 08/10] btrfs: rework btrfs_check_space_for_delayed_... Josef Bacik
- Re: [PATCH 08/10] btrfs: rework btrfs_check_space_for... Nikolay Borisov
- Re: [PATCH 08/10] btrfs: rework btrfs_check_space... David Sterba
- Re: [PATCH 08/10] btrfs: rework btrfs_check_s... Nikolay Borisov
- Re: [PATCH 08/10] btrfs: rework btrfs_che... Nikolay Borisov
- Re: [PATCH 08/10] btrfs: rework btrfs_che... David Sterba
- Re: [PATCH 08/10] btrfs: rework btrfs_check_space_for... Qu Wenruo
- [PATCH 10/10] btrfs: fix truncate throttling Josef Bacik
- [PATCH 09/10] btrfs: don't run delayed refs in the end tra... Josef Bacik
- Re: [PATCH 09/10] btrfs: don't run delayed refs in th... Nikolay Borisov
- Re: [PATCH 00/10][V2] Delayed refs rsv David Sterba