diff options
author | Darrick J. Wong <djwong@kernel.org> | 2024-02-12 15:16:20 +0100 |
---|---|---|
committer | Carlos Maiolino <cem@kernel.org> | 2024-02-15 12:56:43 +0100 |
commit | 95bc0a4d2c72851c2646ff3ebaaf7f64493c6951 (patch) | |
tree | 9cd70a61bce9edc0756f90434bafdf5cbf933f94 | |
parent | 3fb28b11a5a5b8586f6668f2d910c376d17ad19f (diff) | |
download | xfsprogs-dev-95bc0a4d2c72851c2646ff3ebaaf7f64493c6951.tar.gz |
xfs: rename xfs_verify_rtext to xfs_verify_rtbext
Source kernel commit: 3d2b6d034f0feb7741b313f978a2fe45e917e1be
This helper function validates that a range of *blocks* in the
realtime section is completely contained within the realtime section.
It does /not/ validate ranges of *rtextents*. Rename the function to
avoid suggesting that it does, and change the type of the @len parameter
since xfs_rtblock_t is a position unit, not a length unit.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
-rw-r--r-- | libxfs/xfs_bmap.c | 4 | ||||
-rw-r--r-- | libxfs/xfs_types.c | 4 | ||||
-rw-r--r-- | libxfs/xfs_types.h | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/libxfs/xfs_bmap.c b/libxfs/xfs_bmap.c index bc82b71f39..69549a94a0 100644 --- a/libxfs/xfs_bmap.c +++ b/libxfs/xfs_bmap.c @@ -6190,8 +6190,8 @@ xfs_bmap_validate_extent( return __this_address; if (XFS_IS_REALTIME_INODE(ip) && whichfork == XFS_DATA_FORK) { - if (!xfs_verify_rtext(mp, irec->br_startblock, - irec->br_blockcount)) + if (!xfs_verify_rtbext(mp, irec->br_startblock, + irec->br_blockcount)) return __this_address; } else { if (!xfs_verify_fsbext(mp, irec->br_startblock, diff --git a/libxfs/xfs_types.c b/libxfs/xfs_types.c index 87abc82447..74ab1965a8 100644 --- a/libxfs/xfs_types.c +++ b/libxfs/xfs_types.c @@ -148,10 +148,10 @@ xfs_verify_rtbno( /* Verify that a realtime device extent is fully contained inside the volume. */ bool -xfs_verify_rtext( +xfs_verify_rtbext( struct xfs_mount *mp, xfs_rtblock_t rtbno, - xfs_rtblock_t len) + xfs_filblks_t len) { if (rtbno + len <= rtbno) return false; diff --git a/libxfs/xfs_types.h b/libxfs/xfs_types.h index 9af98a9752..9e45f13f6d 100644 --- a/libxfs/xfs_types.h +++ b/libxfs/xfs_types.h @@ -231,8 +231,8 @@ bool xfs_verify_ino(struct xfs_mount *mp, xfs_ino_t ino); bool xfs_internal_inum(struct xfs_mount *mp, xfs_ino_t ino); bool xfs_verify_dir_ino(struct xfs_mount *mp, xfs_ino_t ino); bool xfs_verify_rtbno(struct xfs_mount *mp, xfs_rtblock_t rtbno); -bool xfs_verify_rtext(struct xfs_mount *mp, xfs_rtblock_t rtbno, - xfs_rtblock_t len); +bool xfs_verify_rtbext(struct xfs_mount *mp, xfs_rtblock_t rtbno, + xfs_filblks_t len); bool xfs_verify_icount(struct xfs_mount *mp, unsigned long long icount); bool xfs_verify_dablk(struct xfs_mount *mp, xfs_fileoff_t off); void xfs_icount_range(struct xfs_mount *mp, unsigned long long *min, |