]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: convert rt bitmap extent lengths to xfs_rtbxlen_t
authorDarrick J. Wong <djwong@kernel.org>
Mon, 12 Feb 2024 14:15:20 +0000 (15:15 +0100)
committerCarlos Maiolino <cem@kernel.org>
Thu, 15 Feb 2024 11:56:43 +0000 (12:56 +0100)
commit3fb28b11a5a5b8586f6668f2d910c376d17ad19f
tree0c0654a5cc842e7aa9bc863c8251260b976c3b87
parent75986bcbc75e0c9d265ea80c77664bc63b3ce249
xfs: convert rt bitmap extent lengths to xfs_rtbxlen_t

Source kernel commit: f29c3e745dc253bf9d9d06ddc36af1a534ba1dd0

XFS uses xfs_rtblock_t for many different uses, which makes it much more
difficult to perform a unit analysis on the codebase.  One of these
(ab)uses is when we need to store the length of a free space extent as
stored in the realtime bitmap.  Because there can be up to 2^64 realtime
extents in a filesystem, we need a new type that is larger than
xfs_rtxlen_t for callers that are querying the bitmap directly.  This
means scrub and growfs.

Create this type as "xfs_rtbxlen_t" and use it to store 64-bit rtx
lengths.  'b' stands for 'bitmap' or 'big'; reader's choice.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
libxfs/xfs_format.h
libxfs/xfs_rtbitmap.h
libxfs/xfs_types.h