summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/backref.c
diff options
context:
space:
mode:
authorJosef Bacik <jbacik@fusionio.com>2013-04-23 12:55:21 -0400
committerJosef Bacik <jbacik@fusionio.com>2013-05-06 15:55:06 -0400
commit51bf5f0bc4d132a3646ce36061e83fdc8b77f302 (patch)
tree6353715b1cb9e6581dc57d0d23c8097881b5ba33 /fs/btrfs/backref.c
parent1c24c3ce6a8022ab225f44160bfddc92a5a6e435 (diff)
downloadlinux-51bf5f0bc4d132a3646ce36061e83fdc8b77f302.tar.gz
linux-51bf5f0bc4d132a3646ce36061e83fdc8b77f302.tar.bz2
linux-51bf5f0bc4d132a3646ce36061e83fdc8b77f302.zip
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>
Diffstat (limited to 'fs/btrfs/backref.c')
0 files changed, 0 insertions, 0 deletions