Skip to content
Commit 0bec9ef5 authored by Josef Bacik's avatar Josef Bacik
Browse files

Btrfs: unreserve space if our ordered extent fails to work



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>
parent 779880ef
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment