]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: convert xfs_extlen_t to xfs_rtxlen_t in the rt allocator
authorDarrick J. Wong <djwong@kernel.org>
Mon, 12 Feb 2024 14:13:20 +0000 (15:13 +0100)
committerCarlos Maiolino <cem@kernel.org>
Thu, 15 Feb 2024 11:56:43 +0000 (12:56 +0100)
commit73b5e7703bcfc5a411e7ba255503471ee5ffdca9
tree78ef8430851ea26aca4b25b1b030cd5a50bdbda5
parenta8616431bfa479cafdb4680ca9c3239d28117aee
xfs: convert xfs_extlen_t to xfs_rtxlen_t in the rt allocator

Source kernel commit: a684c538bc14410565e8939393089670fa1e19dd

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>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
libxfs/xfs_rtbitmap.c
libxfs/xfs_rtbitmap.h
libxfs/xfs_types.h