]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs: make RT extent numbers relative to the rtgroup
authorChristoph Hellwig <hch@lst.de>
Mon, 25 Nov 2024 21:14:20 +0000 (13:14 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 24 Dec 2024 02:01:29 +0000 (18:01 -0800)
commit49e1064f01690a844d8082866c3b782234108bfe
tree1aca07ca4c220ce8354ec5cd1d778bf78f53cf91
parent3241cd2c17ae9692301ad844152815a2f1409fed
xfs: make RT extent numbers relative to the rtgroup

Source kernel commit: f220f6da5f4ad7da538c39075cf57e829d5202f7

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>
Reviewed-by: Christoph Hellwig <hch@lst.de>
db/block.c
libxfs/xfs_bmap.c
libxfs/xfs_rtbitmap.h