Re: [PATCH 2/9] btrfs: always pin deleted leaves when there are active tree mod log users

2021-03-16 Thread Johannes Thumshirn
On 16/03/2021 12:50, Filipe Manana wrote: > On Mon, Mar 15, 2021 at 7:31 PM David Sterba wrote: >> >> On Thu, Mar 11, 2021 at 02:31:06PM +, fdman...@kernel.org wrote: >>> From: Filipe Manana >>> >>> When freeing a tree block we may end up adding its extent back to the >>> free space cache/tre

Re: [PATCH 2/9] btrfs: always pin deleted leaves when there are active tree mod log users

2021-03-16 Thread Filipe Manana
On Mon, Mar 15, 2021 at 7:31 PM David Sterba wrote: > > On Thu, Mar 11, 2021 at 02:31:06PM +, fdman...@kernel.org wrote: > > From: Filipe Manana > > > > When freeing a tree block we may end up adding its extent back to the > > free space cache/tree, as long as there are no more references for

Re: [PATCH 2/9] btrfs: always pin deleted leaves when there are active tree mod log users

2021-03-15 Thread David Sterba
On Thu, Mar 11, 2021 at 02:31:06PM +, fdman...@kernel.org wrote: > From: Filipe Manana > > When freeing a tree block we may end up adding its extent back to the > free space cache/tree, as long as there are no more references for it, > it was created in the current transaction and writeback f

[PATCH 2/9] btrfs: always pin deleted leaves when there are active tree mod log users

2021-03-11 Thread fdmanana
From: Filipe Manana When freeing a tree block we may end up adding its extent back to the free space cache/tree, as long as there are no more references for it, it was created in the current transaction and writeback for it never happened. This is generally fine, however when we have tree mod log