]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: cleanup reserved space when freeing tree log on error
authorJosef Bacik <jbacik@fusionio.com>
Mon, 7 Oct 2013 19:11:00 +0000 (15:11 -0400)
committerChris Mason <chris.mason@fusionio.com>
Tue, 12 Nov 2013 02:56:11 +0000 (21:56 -0500)
commit9e21bd8c6f18840f5f43372e7d2227fce85661e6
treee111fd622d2eef00c211b9adb9b68d1a8cd07e57
parent16fb8ce606127259619c9467d3f5b0b86f1b4901
Btrfs: cleanup reserved space when freeing tree log on error

On error we will wait and free the tree log at unmount without a transaction.
This means that the actual freeing of the blocks doesn't happen which means we
complain about space leaks on unmount.  So to fix this just skip the transaction
specific cleanup part of the tree log free'ing if we don't have a transaction
and that way we can free up our reserved space and our counters stay happy.
Thanks,

Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/tree-log.c