+75
−0
+2
−0
+8
−0
+18
−0
+4
−0
Loading
Add a function btrfs_populate_fully_remapped_bgs_list() which gets called on mount, which looks for fully remapped block groups (i.e. identity_remap_count == 0) which haven't yet had their chunk stripes and device extents removed. This happens when a filesystem is unmounted while async discard has not yet finished, as otherwise the data range occupied by the chunk stripes would be permanently unusable. Reviewed-by:Boris Burkov <boris@bur.io> Signed-off-by:
Mark Harmstone <mark@harmstone.com> Signed-off-by:
David Sterba <dsterba@suse.com>