]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: free up block groups after everything
authorJosef Bacik <jbacik@fusionio.com>
Mon, 7 Oct 2013 19:14:44 +0000 (15:14 -0400)
committerChris Mason <chris.mason@fusionio.com>
Tue, 12 Nov 2013 02:56:17 +0000 (21:56 -0500)
commit931997966a6fe8c380907363434645046f228ae0
treed3a6cdd5f0389f3d5859aaf599a18b0a058a7f51
parent9e21bd8c6f18840f5f43372e7d2227fce85661e6
Btrfs: free up block groups after everything

If we abort a transaction we will do the tree log cleanup at unmount, but this
happens after we free up the block groups.  This makes all the leak detection
warnings go off because we think we've leaked space but in reality we just
haven't cleaned it up yet.  So instead do the block group cleanup stuff after
free'ing the fs roots so we don't get these warnings.  Thanks,

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