[PATCH] Btrfs: account for space reservations properly V2

2011-06-07 Thread Josef Bacik
We have been using space_info-bytes_reserved in the metadata case to cover our reservations for ENOSPC. The problem with this is thats horribly wrong. We use bytes_reserved to keep track of how many bytes the allocator has outstanding that haven't actually been made into extents yet. So what

[PATCH] Btrfs: account for space reservations properly

2011-06-06 Thread Josef Bacik
We have been using space_info-bytes_reserved in the metadata case to cover our reservations for ENOSPC. The problem with this is thats horribly wrong. We use bytes_reserved to keep track of how many bytes the allocator has outstanding that haven't actually been made into extents yet. So what