aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/dev-replace.c
diff options
context:
space:
mode:
authorJosef Bacik <[email protected]>2012-12-18 14:16:16 +0000
committerJosef Bacik <[email protected]>2013-02-20 14:37:09 +0000
commitc6b305a89b1903d63652691ad5eb9f05aa0326b8 (patch)
tree2b16ef4fb5c23e64ef0d0092674ebfaee3ac54d2 /fs/btrfs/dev-replace.c
parentBtrfs: wait on ordered extents at the last possible moment (diff)
downloadkernel-c6b305a89b1903d63652691ad5eb9f05aa0326b8.tar.gz
kernel-c6b305a89b1903d63652691ad5eb9f05aa0326b8.zip
Btrfs: don't re-enter when allocating a chunk
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 <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions