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)
commite84cc14213e2c81ae5a2da341a9da0d58a1dbfad
tree52839177644fbec66a4b782392147cde76a36676
parent9b1998598625fb5b798e8291cafda1a8ec17c1bd
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