]> 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)
commit3241909ef6be5fc1e7fc1e8494eae3eebf6ef6b1
treec35062de4aff85ec5de5ad1e8d48d62c66fc8fcb
parentff5a4f38aee33eef4d9c0824daea537e8383124d
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