Btrfs: don't re-enter when allocating a chunk
authorJosef Bacik <jbacik@fusionio.com>
Tue, 18 Dec 2012 14:16:16 +0000 (09:16 -0500)
committerJosef Bacik <jbacik@fusionio.com>
Wed, 20 Feb 2013 14:37:09 +0000 (09:37 -0500)
If we start running low on metadata space we will try to allocate a chunk,
which could then try to allocate a chunk to add the device entry.  The thing
is we allocate a chunk before we try really hard to make the allocation, so
we should be able to find space for the device entry.  Add a flag to the
trans handle so we know we're currently allocating a chunk so we can just
bail out if we try to allocate another chunk.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fusionio.com>

No differences found