]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: don't leak block group on error
authorFilipe David Borba Manana <fdmanana@gmail.com>
Mon, 9 Sep 2013 18:49:43 +0000 (19:49 +0100)
committerChris Mason <chris.mason@fusionio.com>
Tue, 12 Nov 2013 02:53:15 +0000 (21:53 -0500)
commitc5d07170e8bc6be35d58093227f9e613c145e198
tree52839177644fbec66a4b782392147cde76a36676
parent827298ec315b637b06f41ebfdc7af399ccd601d4
Btrfs: don't leak block group on error

In extent-tree.c:btrfs_write_dirty_block_groups(), if the call to
write_one_cache_group() failed, we would return without putting
the block group first.

Signed-off-by: Filipe David Borba Manana <fdmanana@gmail.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/extent-tree.c