diff options
author | Darrick J. Wong <djwong@kernel.org> | 2021-09-01 11:18:00 -0700 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2021-09-17 18:55:19 -0700 |
commit | c1d9805deef32eb67904ad7cdbb99890072c4585 (patch) | |
tree | 38b6313d793231bf415022a550d85eaad917dd67 /fs/xfs/scrub/repair.h | |
parent | 5f96271e123e38e432d3ce4f0e690edca846edb6 (diff) |
xfs: online repair of the realtime rmap btree
Repair the realtime rmap btree while mounted.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to 'fs/xfs/scrub/repair.h')
-rw-r--r-- | fs/xfs/scrub/repair.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/xfs/scrub/repair.h b/fs/xfs/scrub/repair.h index 04e4a0e16671..ea668937b0ea 100644 --- a/fs/xfs/scrub/repair.h +++ b/fs/xfs/scrub/repair.h @@ -86,6 +86,8 @@ void xrep_ag_btcur_init(struct xfs_scrub *sc, struct xchk_ag *sa); int xrep_ag_init(struct xfs_scrub *sc, struct xfs_perag *pag, struct xchk_ag *sa); void xrep_rt_btcur_init(struct xfs_scrub *sc, struct xchk_rt *sr); +int xrep_check_ino_btree_mapping(struct xfs_scrub *sc, + const struct xfs_rmap_irec *rec); #ifdef CONFIG_XFS_RT int xrep_require_rtext_inuse(struct xfs_scrub *sc, xfs_rtblock_t rtbno, @@ -131,9 +133,11 @@ int xrep_quotacheck(struct xfs_scrub *sc); #ifdef CONFIG_XFS_RT int xrep_rtsummary(struct xfs_scrub *sc); int xrep_rtbitmap(struct xfs_scrub *sc); +int xrep_rtrmapbt(struct xfs_scrub *sc); #else # define xrep_rtsummary xrep_notsupported # define xrep_rtbitmap xrep_notsupported +# define xrep_rtrmapbt xrep_notsupported #endif /* CONFIG_XFS_RT */ struct xrep_newbt_resv { @@ -194,6 +198,7 @@ void xrep_bload_estimate_slack(struct xfs_scrub *sc, int xrep_newbt_relog_efis(struct xrep_newbt *xnr); bool xrep_buf_verify_struct(struct xfs_buf *bp, const struct xfs_buf_ops *ops); +int xrep_reset_imeta_reservation(struct xfs_scrub *sc); #else @@ -258,6 +263,7 @@ xrep_rmapbt_setup( #define xrep_dir xrep_notsupported #define xrep_parent xrep_notsupported #define xrep_rtbitmap xrep_notsupported +#define xrep_rtrmapbt xrep_notsupported #endif /* CONFIG_XFS_ONLINE_REPAIR */ |