]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Btrfs: fix transaction handle leak on failure to create hard link
authorFilipe Manana <fdmanana@suse.com>
Tue, 5 Jan 2016 16:24:05 +0000 (16:24 +0000)
committerSasha Levin <sasha.levin@oracle.com>
Wed, 13 Apr 2016 21:14:21 +0000 (17:14 -0400)
commit9bf972e8aa6110d750cf1ddab68511f478a6a751
treebb1e7d998ed8a91ec5f165b41ccecb8f55f82214
parenta1f535acffbd95ae6ae81656e8bba39af094c3f0
Btrfs: fix transaction handle leak on failure to create hard link

[ Upstream commit 271dba4521aed0c37c063548f876b49f5cd64b2e ]

If we failed to create a hard link we were not always releasing the
the transaction handle we got before, resulting in a memory leak and
preventing any other tasks from being able to commit the current
transaction.
Fix this by always releasing our transaction handle.

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
fs/btrfs/inode.c