Re: [PATCH] Btrfs: fix free space cache when there are pinned extents and clusters V2

2011-04-04 Thread Mitch Harder
On Fri, Apr 1, 2011 at 9:55 AM, Josef Bacik jo...@redhat.com wrote: I noticed a huge problem with the free space cache that was presenting as an early ENOSPC.  Turns out when writing the free space cache out I forgot to take into account pinned extents and more importantly clusters.  This

[PATCH] Btrfs: fix free space cache when there are pinned extents and clusters V2

2011-04-01 Thread Josef Bacik
I noticed a huge problem with the free space cache that was presenting as an early ENOSPC. Turns out when writing the free space cache out I forgot to take into account pinned extents and more importantly clusters. This would result in us leaking free space everytime we unmounted the filesystem