]> www.infradead.org Git - users/hch/xfsprogs.git/commitdiff
xfs: store rtgroup information with a bmap intent
authorDarrick J. Wong <djwong@kernel.org>
Mon, 5 Aug 2024 18:09:49 +0000 (11:09 -0700)
committerChristoph Hellwig <hch@lst.de>
Tue, 6 Aug 2024 12:53:49 +0000 (05:53 -0700)
Source kernel commit: b6e3ae52a23a48ba4b7872a228f01138ab65e812

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.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
libxfs/xfs_bmap.h

index 7592d46e97c661136e53978e0052d7f7caa799b8..eb3670ecd1373fad6c0ab07f925d1f2d6979e3aa 100644 (file)
@@ -248,7 +248,10 @@ struct xfs_bmap_intent {
        enum xfs_bmap_intent_type               bi_type;
        int                                     bi_whichfork;
        struct xfs_inode                        *bi_owner;
-       struct xfs_perag                        *bi_pag;
+       union {
+               struct xfs_perag                *bi_pag;
+               struct xfs_rtgroup              *bi_rtg;
+       };
        struct xfs_bmbt_irec                    bi_bmap;
 };