]> www.infradead.org Git - users/hch/xfsprogs.git/commitdiff
xfs: online repair of the realtime refcount btree
authorDarrick J. Wong <djwong@kernel.org>
Tue, 7 Mar 2023 03:56:32 +0000 (19:56 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 22 Nov 2023 23:03:41 +0000 (15:03 -0800)
Port the data device's refcount btree repair code to the realtime
refcount btree.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
libxfs/xfs_refcount.c
libxfs/xfs_refcount.h

index a6ce2e0853598b8dd0cb9f24fc56a4701ef32a1f..046741ed11d790b6e2fcd4a38c99977fd0bb95b8 100644 (file)
@@ -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)
index 4e92358bd443350b9e2d0e77f76ab275dc545955..20d8c47cb0424090e9e78599cdd1343e15f647e1 100644 (file)
@@ -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,