]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xfs: store rtgroup information with a bmap intent
authorDarrick J. Wong <djwong@kernel.org>
Mon, 4 Nov 2024 04:19:25 +0000 (20:19 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 5 Nov 2024 21:38:41 +0000 (13:38 -0800)
commite464d8e8bb029fa4141710c7e668acc5aad24fed
treef2cfd690a38110ca7276d7b62a0dc9cc59bcdfef
parentee321351487ae00db147d570c8c2a43e10207386
xfs: store rtgroup information with a bmap intent

Make the bmap intent items take an active reference to the rtgroup
containing the space that is being mapped or unmapped.  We will need
this functionality once we start enabling rmap and reflink on the rt
volume.  Technically speaking we need it even for !rtgroups filesystems
to prevent the (dummy) rtgroup 0 from going away, even though this will
never happen.

As a bonus, we can rework the xfs_bmap_deferred_class tracepoint to use
the xfs_group object to figure out the type and group number, widen the
group block number field to fit 64-bit quantities, and get rid of the
now redundant opdev and rtblock fields.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/xfs_bmap_item.c
fs/xfs/xfs_trace.h