Btrfs: fix missing release of the space/qgroup reservation in start_transaction()
authorMiao Xie <miaox@cn.fujitsu.com>
Mon, 28 Jan 2013 12:36:22 +0000 (12:36 +0000)
committerJosef Bacik <jbacik@fusionio.com>
Tue, 5 Feb 2013 21:09:11 +0000 (16:09 -0500)
commit843fcf35733164076a77ad833c72c32da8228ad0
tree4da55ef848c61857624dc29e41b2fb1f8d52af1d
parent0a3404dcff29a7589e8d6ce8c36f97c5411f85b4
Btrfs: fix missing release of the space/qgroup reservation in start_transaction()

When we fail to start a transaction, we need to release the reserved free space
and qgroup space, fix it.

Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Reviewed-by: Jan Schmidt <list.btrfs@jan-o-sch.net>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/transaction.c