• Darrick J. Wong's avatar
    xfs: check rt bitmap file geometry more thoroughly · 41991cf2
    Darrick J. Wong authored
    I forgot that the superblock tracks the number of blocks that are in the
    realtime bitmap, and that the rt bitmap file can have more blocks mapped
    to the data fork than sb_rbmblocks if growfsrt fails.
    
    So.  Add to the rtbitmap scrubber an explicit check that sb_rextents and
    sb_rbmblocks are correct, then adjust the rtbitmap i_size checks to
    allow for the growfsrt failure case.  Finally, flag post-eof blocks in
    the rtbitmap.
    Signed-off-by: default avatarDarrick J. Wong <djwong@kernel.org>
    Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
    41991cf2
rtbitmap.c 5.53 KB