]> git.baikalelectronics.ru Git - kernel.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)
committerFilipe Manana <fdmanana@suse.com>
Wed, 6 Jan 2016 22:52:38 +0000 (22:52 +0000)
commit99a66c15d00abe74afc7ed3379e2feb32d9c787c
tree016938b3f9e791e8381d6a14b16583c14eaf9ef1
parentb1920100ead9ec3846f7c02ed6a8ab45dd43e5f1
Btrfs: fix transaction handle leak on failure to create hard link

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>
fs/btrfs/inode.c