]> www.infradead.org Git - users/hch/xfsprogs.git/commitdiff
xfs: replace m_rsumsize with m_rsumblocks
authorChristoph Hellwig <hch@lst.de>
Mon, 5 Aug 2024 13:53:48 +0000 (15:53 +0200)
committerChristoph Hellwig <hch@lst.de>
Mon, 5 Aug 2024 18:52:43 +0000 (11:52 -0700)
Source kernel commit: df5f8e548083f06499fbd1250dde78950d541fc7

Track the RT summary file size in blocks, just like the RT bitmap
file.  While we have users of both units, blocks are used slightly
more often and this matches the bitmap file for consistency.

Signed-off-by: Christoph Hellwig <hch@lst.de>
libxfs/xfs_rtbitmap.c
libxfs/xfs_trans_resv.c

index 9e69d090c5e0a0f6cf75b8dd9270d2e9639fa105..6a69f612b2eccb756139350d1076b8e1059c1e6d 100644 (file)
@@ -160,7 +160,7 @@ xfs_rtsummary_read_buf(
 {
        struct xfs_mount                *mp = args->mp;
 
-       if (XFS_IS_CORRUPT(mp, block >= XFS_B_TO_FSB(mp, mp->m_rsumsize))) {
+       if (XFS_IS_CORRUPT(mp, block >= mp->m_rsumblocks)) {
                xfs_rt_mark_sick(args->mp, XFS_SICK_RT_SUMMARY);
                return -EFSCORRUPTED;
        }
index a2cb4d63e34e3b26d842a999adf59c0fb203b90f..a7fb2f97e3bf2c434c8a857a53af61fa8d9173b9 100644 (file)
@@ -915,7 +915,7 @@ xfs_calc_growrtfree_reservation(
        return xfs_calc_buf_res(1, mp->m_sb.sb_sectsize) +
                xfs_calc_inode_res(mp, 2) +
                xfs_calc_buf_res(1, mp->m_sb.sb_blocksize) +
-               xfs_calc_buf_res(1, mp->m_rsumsize);
+               xfs_calc_buf_res(1, XFS_FSB_TO_B(mp, mp->m_rsumblocks));
 }
 
 /*