]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: only exclude supers in the range of our block group
authorJosef Bacik <jbacik@fusionio.com>
Tue, 23 Apr 2013 16:55:21 +0000 (12:55 -0400)
committerJosef Bacik <jbacik@fusionio.com>
Mon, 6 May 2013 19:55:06 +0000 (15:55 -0400)
commit892b7e5bd2620530276267aaea1f7bfb9530768f
tree6353715b1cb9e6581dc57d0d23c8097881b5ba33
parent7070317d28f72230a7f5f83dd78c71b5ee63fea1
Btrfs: only exclude supers in the range of our block group

If we fail to load block groups halfway through we can leave extent_state's on
the excluded tree.  This is because we just lookup the supers and add them to
the excluded tree regardless of which block group we are looking at currently.
This is a problem because we remove the excluded extents for the range of the
block group only, so if we don't ever load a block group for one of the excluded
extents we won't ever free it.  This fixes the problem by only adding excluded
extents if it falls in the block group range we care about.  With this patch
we're no longer leaking space when we fail to read all of the block groups.
Thanks,

Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/extent-tree.c