From db612505ed7ffeda447f15be21e82c0aab4f2954 Mon Sep 17 00:00:00 2001 From: "Darrick J. Wong" Date: Mon, 5 Aug 2024 11:09:49 -0700 Subject: [PATCH] xfs: store rtgroup information with a bmap intent 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 Signed-off-by: Christoph Hellwig --- libxfs/xfs_bmap.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libxfs/xfs_bmap.h b/libxfs/xfs_bmap.h index 7592d46e9..eb3670ecd 100644 --- a/libxfs/xfs_bmap.h +++ b/libxfs/xfs_bmap.h @@ -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; }; -- 2.50.1