]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: fix transaction handle leak in balance
authorFilipe Manana <fdmanana@suse.com>
Thu, 10 Dec 2015 11:08:59 +0000 (11:08 +0000)
committerFilipe Manana <fdmanana@suse.com>
Thu, 10 Dec 2015 11:23:24 +0000 (11:23 +0000)
commit905edcadd87dd3fe7061fccf52b57f0b8d787441
tree7ceb81382f358d878240a8d56a61928c164850a5
parent80963b073b1cff4bbaf5b76085b18f0553cf4992
Btrfs: fix transaction handle leak in balance

If we fail to allocate a new data chunk, we were jumping to the error path
without release the transaction handle we got before. Fix this by always
releasing it before doing the jump.

Fixes: 8331c9a244cc ("btrfs: Fix lost-data-profile caused by balance bg")
Signed-off-by: Filipe Manana <fdmanana@suse.com>
fs/btrfs/volumes.c