Re: [PATCH RESEND] Btrfs: fix early ENOSPC due to delalloc

2017-07-21 Thread Adam Borowski
On Thu, Jul 20, 2017 at 03:10:35PM -0700, Omar Sandoval wrote: > If a lot of metadata is reserved for outstanding delayed allocations, we > rely on shrink_delalloc() to reclaim metadata space in order to fulfill > reservation tickets. However, shrink_delalloc() has a shortcut where if > it

Re: [PATCH RESEND] Btrfs: fix early ENOSPC due to delalloc

2017-07-21 Thread Josef Bacik
On Thu, Jul 20, 2017 at 03:10:35PM -0700, Omar Sandoval wrote: > From: Omar Sandoval > > If a lot of metadata is reserved for outstanding delayed allocations, we > rely on shrink_delalloc() to reclaim metadata space in order to fulfill > reservation tickets. However,