]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs: make RT extent numbers relative to the rtgroup
authorChristoph Hellwig <hch@lst.de>
Tue, 15 Oct 2024 19:44:08 +0000 (12:44 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Fri, 1 Nov 2024 20:44:49 +0000 (13:44 -0700)
commitb7da9b69649fc26f9ac0e9a8becc93607a72f467
tree801493e55a3b3ce3b2f6ee5f93d306fdd835d716
parent99a6a909720a75963aad7b7a23fbfa8d5d4a1c24
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>
db/block.c
libxfs/xfs_bmap.c
libxfs/xfs_rtbitmap.h