diff options
author | Darrick J. Wong <djwong@kernel.org> | 2023-10-16 09:31:11 -0700 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2023-10-17 16:24:22 -0700 |
commit | a684c538bc14410565e8939393089670fa1e19dd (patch) | |
tree | e94ddb75372a96b28b4d0c84d4f19fe8579650a9 /fs/xfs/scrub/rtbitmap.c | |
parent | 13928113fc5b5e79c91796290a99ed991ac0efe2 (diff) | |
download | linux-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.c | 2 |
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; |