From: Josef Bacik Date: Mon, 7 Oct 2013 19:11:00 +0000 (-0400) Subject: Btrfs: cleanup reserved space when freeing tree log on error X-Git-Tag: v3.13-rc1~85^2~69 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=681ae50917df9fd1fae2571fb36a579d1e872b12;p=pandora-kernel.git 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 Signed-off-by: Chris Mason --- Reading git-diff-tree failed