]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: fix ordered extent leak when failing to start a transaction
authorLiu Bo <bo.li.liu@oracle.com>
Wed, 22 Aug 2012 03:13:25 +0000 (21:13 -0600)
committerChris Mason <chris.mason@oracle.com>
Tue, 28 Aug 2012 20:53:42 +0000 (16:53 -0400)
commit1c1486dc06a1bea20b04e780a50b5d18dde052b1
treec35062de4aff85ec5de5ad1e8d48d62c66fc8fcb
parenta983af407f71505bf6587052658e12f0cf9cfb45
Btrfs: fix ordered extent leak when failing to start a transaction

We cannot just return error before freeing ordered extent and releasing reserved
space when we fail to start a transacion.

Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/inode.c