]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs: make RT extent numbers relative to the rtgroup
authorChristoph Hellwig <hch@lst.de>
Mon, 23 Sep 2024 20:41:17 +0000 (13:41 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 9 Oct 2024 23:29:10 +0000 (16:29 -0700)
commitfbc11b69964fd203ed0f1a68a46e5fde920a966c
tree1d2d4a630a2a019571ece0d0f62a7acd0d26f843
parent0e504c3e1edfb756f5798dcbce897b49aaada7b8
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