Btrfs: fix the qgroup reserved space is released prematurely
authorMiao Xie <miaox@cn.fujitsu.com>
Wed, 20 Feb 2013 09:13:32 +0000 (09:13 +0000)
committerJosef Bacik <jbacik@fusionio.com>
Wed, 20 Feb 2013 18:00:02 +0000 (13:00 -0500)
commit4b82490649f5c8ecbf888752c325ea68831c497e
treefac234e29328709e2b7f08277f95ae7f61d32a0e
parentcdb4c5748cb3ac533889a6b0b95aa10651e68785
Btrfs: fix the qgroup reserved space is released prematurely

In start_transactio(), we will try to join the transaction again after
the current transaction is committed, so we should not release the
reserved space of the qgroup. Fix it.

Cc: Arne Jansen <sensille@gmx.net>
Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/transaction.c