From: Darrick J. Wong Date: Tue, 7 Mar 2023 03:56:32 +0000 (-0800) Subject: xfs: online repair of the realtime refcount btree X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=207d9671b302eeda3d3ba8597974f90995b90cfd;p=users%2Fhch%2Fxfsprogs.git xfs: online repair of the realtime refcount btree Port the data device's refcount btree repair code to the realtime refcount btree. Signed-off-by: Darrick J. Wong --- diff --git a/libxfs/xfs_refcount.c b/libxfs/xfs_refcount.c index a6ce2e085..046741ed1 100644 --- a/libxfs/xfs_refcount.c +++ b/libxfs/xfs_refcount.c @@ -154,7 +154,7 @@ xfs_refcount_check_perag_irec( return NULL; } -static inline xfs_failaddr_t +inline xfs_failaddr_t xfs_refcount_check_rtgroup_irec( struct xfs_rtgroup *rtg, const struct xfs_refcount_irec *irec) diff --git a/libxfs/xfs_refcount.h b/libxfs/xfs_refcount.h index 4e92358bd..20d8c47cb 100644 --- a/libxfs/xfs_refcount.h +++ b/libxfs/xfs_refcount.h @@ -129,6 +129,8 @@ extern void xfs_refcount_btrec_to_irec(const union xfs_btree_rec *rec, struct xfs_refcount_irec *irec); xfs_failaddr_t xfs_refcount_check_perag_irec(struct xfs_perag *pag, const struct xfs_refcount_irec *irec); +xfs_failaddr_t xfs_refcount_check_rtgroup_irec(struct xfs_rtgroup *rtg, + const struct xfs_refcount_irec *irec); xfs_failaddr_t xfs_refcount_check_irec(struct xfs_btree_cur *cur, const struct xfs_refcount_irec *irec); extern int xfs_refcount_insert(struct xfs_btree_cur *cur,