]> www.infradead.org Git - users/jedix/linux-maple.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)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 26 May 2016 22:45:53 +0000 (15:45 -0700)
commit2fc695db3eb86b959602ec6d210fd8bc9d9c36af
treef8585ae5f9398f00bb4f1fa431c7e88566aef407
parent47c14c50025045ade136bc53668a7fa895d2fbf9
Btrfs: fix transaction handle leak on failure to create hard link

Orabug: 23331029

[ 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>
(cherry picked from commit 9bf972e8aa6110d750cf1ddab68511f478a6a751)

Signed-off-by: Dan Duval <dan.duval@oracle.com>
fs/btrfs/inode.c