• J
    Btrfs: fix chunk allocation error handling · 04487488
    Josef Bacik 提交于
    If we error out allocating a dev extent we will have already created the
    block group and such which will cause problems since the allocator may have
    tried to allocate out of the block group that no longer exists.  This will
    cause BUG_ON()'s in the bio submission path.  This also makes a failure to
    allocate a dev extent a non-abort error, we will just clean up the dev
    extents we did allocate and exit.  Now if we fail to delete the dev extents
    we will abort since we can't have half of the dev extents hanging around,
    but this will make us much less likely to abort.  Thanks,
    Signed-off-by: NJosef Bacik <jbacik@fusionio.com>
    04487488
volumes.c 145.5 KB