]> git.proxmox.com Git - mirror_ubuntu-disco-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)
commitd280e5be940931c84bb2e9831ead9d02bc785484
treec35062de4aff85ec5de5ad1e8d48d62c66fc8fcb
parent24c03fa5cf3d02c327cf9f2fc39f72664b1bd7e1
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