Josef Bacik 4e06bdd6cb Btrfs: try committing transaction before returning ENOSPC
This fixes a problem where we could return -ENOSPC when we may actually have
plenty of space, the space is just pinned.  Instead of returning -ENOSPC
immediately, commit the transaction first and then try and do the allocation
again.

This patch also does chunk allocation for metadata if we pass the 80%
threshold for metadata space.  This will help with stack usage since the chunk
allocation will happen early on, instead of when the allocation is happening.

Signed-off-by: Josef Bacik <jbacik@redhat.com>
2009-02-20 10:59:53 -05:00
..
2009-01-05 21:25:51 -05:00
2009-02-20 11:00:09 -05:00
2009-01-05 21:25:51 -05:00
2009-01-05 21:25:51 -05:00
2008-09-25 11:04:06 -04:00
2009-01-06 11:42:00 -05:00
2009-02-20 11:00:09 -05:00
2008-09-25 11:04:06 -04:00
2009-02-12 14:11:25 -05:00
2009-02-20 11:00:09 -05:00
2009-02-20 11:00:09 -05:00
2009-02-04 09:28:28 -05:00
2009-02-09 16:22:03 -05:00
2008-10-29 14:49:59 -04:00
2009-01-21 10:59:08 -05:00
2009-01-05 21:25:51 -05:00
2009-01-05 21:25:51 -05:00
2009-01-05 21:25:51 -05:00
2008-12-12 10:03:26 -05:00
2009-02-04 09:29:13 -05:00
2009-02-04 09:29:13 -05:00
2009-01-05 21:25:51 -05:00