summaryrefslogtreecommitdiffstats
path: root/fs/xfs/scrub/rtbitmap.c
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2023-10-16 09:31:11 -0700
committerDarrick J. Wong <djwong@kernel.org>2023-10-17 16:24:22 -0700
commita684c538bc14410565e8939393089670fa1e19dd (patch)
treee94ddb75372a96b28b4d0c84d4f19fe8579650a9 /fs/xfs/scrub/rtbitmap.c
parent13928113fc5b5e79c91796290a99ed991ac0efe2 (diff)
downloadlinux-a684c538bc14410565e8939393089670fa1e19dd.tar.gz
linux-a684c538bc14410565e8939393089670fa1e19dd.tar.bz2
linux-a684c538bc14410565e8939393089670fa1e19dd.zip
xfs: convert xfs_extlen_t to xfs_rtxlen_t in the rt allocator
In most of the filesystem, we use xfs_extlen_t to store the length of a file (or AG) space mapping in units of fs blocks. Unfortunately, the realtime allocator also uses it to store the length of a rt space mapping in units of rt extents. This is confusing, since one rt extent can consist of many fs blocks. Separate the two by introducing a new type (xfs_rtxlen_t) to store the length of a space mapping (in units of realtime extents) that would be found in a file. Signed-off-by: Darrick J. Wong <djwong@kernel.org> Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/xfs/scrub/rtbitmap.c')
-rw-r--r--fs/xfs/scrub/rtbitmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/scrub/rtbitmap.c b/fs/xfs/scrub/rtbitmap.c
index 2e5fd52f7af3..71d3e8b85844 100644
--- a/fs/xfs/scrub/rtbitmap.c
+++ b/fs/xfs/scrub/rtbitmap.c
@@ -133,7 +133,7 @@ xchk_xref_is_used_rt_space(
{
xfs_rtblock_t startext;
xfs_rtblock_t endext;
- xfs_rtblock_t extcount;
+ xfs_rtxlen_t extcount;
bool is_free;
int error;