]> www.infradead.org Git - users/dwmw2/linux.git/commit
xfs: make RT extent numbers relative to the rtgroup
authorChristoph Hellwig <hch@lst.de>
Mon, 4 Nov 2024 04:19:15 +0000 (20:19 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 5 Nov 2024 21:38:38 +0000 (13:38 -0800)
commitf220f6da5f4ad7da538c39075cf57e829d5202f7
treeee7f9c36befd093e5af947ad5ab946b2a91dd7f1
parentf8c5a8415f6e23fa5b6301635d8b451627efae1c
xfs: make RT extent numbers relative to the rtgroup

To prepare for adding per-rtgroup bitmap files, make the xfs_rtxnum_t
type encode the RT extent number relative to the rtgroup.  The biggest
part of this to clearly distinguish between the relative extent number
that gets masked when converting from a global block number and length
values that just have a factor applied to them when converting from
file system blocks.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
fs/xfs/libxfs/xfs_bmap.c
fs/xfs/libxfs/xfs_rtbitmap.h
fs/xfs/scrub/rtbitmap.c
fs/xfs/scrub/rtsummary.c
fs/xfs/xfs_discard.c
fs/xfs/xfs_fsmap.c
fs/xfs/xfs_iomap.c
fs/xfs/xfs_mount.c
fs/xfs/xfs_rtalloc.c
fs/xfs/xfs_super.c