]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: unreserve space if our ordered extent fails to work
authorJosef Bacik <jbacik@fusionio.com>
Thu, 31 Jan 2013 19:58:00 +0000 (14:58 -0500)
committerJosef Bacik <jbacik@fusionio.com>
Wed, 20 Feb 2013 17:59:29 +0000 (12:59 -0500)
commit7186cb8fe08f9cd63bccf75e90634930db3f9a60
tree0cc7a1074c0611758b459b776ae0474e8278874a
parent45730879d71243ef2624d712d6280ea2ec1a440f
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: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/inode.c