• Josef Bacik's avatar
    Btrfs: unreserve space if our ordered extent fails to work · 0bec9ef5
    Josef Bacik authored
    When a transaction aborts or there's an EIO on an ordered extent or any
    error really we will not free up the space we reserved for this ordered
    extent.  This results in warnings from the block group cache cleanup in the
    case of a transaction abort, or leaking space in the case of EIO on an
    ordered extent.  Fix this up by free'ing the reserved space if we have an
    error at all trying to complete an ordered extent.  Thanks,
    Signed-off-by: default avatarJosef Bacik <jbacik@fusionio.com>
    0bec9ef5
inode.c 214 KB