summaryrefslogtreecommitdiff
path: root/fs/xfs/scrub/rtbitmap.c
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2022-08-17 10:34:39 -0700
committerDarrick J. Wong <djwong@kernel.org>2022-10-14 14:17:06 -0700
commit80ef612d15a7b0a6ed6ad6c1984ac6e91a9b70c9 (patch)
treedb8c0b9d851c1ba9adb6da476b99eefd858769f2 /fs/xfs/scrub/rtbitmap.c
parentf2c86ca687df6f7d308ee7eb5f909ee29e615fc2 (diff)
xfs: convert rt extent numbers to xfs_rtxnum_tclean-up-realtime-units_2022-10-14
Further disambiguate the xfs_rtblock_t uses by creating a new type, xfs_rtxnum_t, to store the position of an extent within the realtime section, in units of rtextents. Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to 'fs/xfs/scrub/rtbitmap.c')
-rw-r--r--fs/xfs/scrub/rtbitmap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/xfs/scrub/rtbitmap.c b/fs/xfs/scrub/rtbitmap.c
index a1efe6d143e4..b4bed73a9a14 100644
--- a/fs/xfs/scrub/rtbitmap.c
+++ b/fs/xfs/scrub/rtbitmap.c
@@ -55,7 +55,7 @@ xchk_rtbitmap_rec(
void *priv)
{
struct xfs_scrub *sc = priv;
- xfs_rtblock_t startblock;
+ xfs_rtxnum_t startblock;
xfs_filblks_t blockcount;
startblock = rec->ar_startext * mp->m_sb.sb_rextsize;
@@ -139,8 +139,8 @@ xchk_xref_is_used_rt_space(
xfs_rtblock_t fsbno,
xfs_extlen_t len)
{
- xfs_rtblock_t startext;
- xfs_rtblock_t endext;
+ xfs_rtxnum_t startext;
+ xfs_rtxnum_t endext;
xfs_rtxlen_t extcount;
bool is_free;
int error;