diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2020-03-12 14:49:02 -0700 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2020-06-01 21:16:32 -0700 |
commit | f13e935a9e9f8c838ff5c997abf4083c8f999089 (patch) | |
tree | 2db2d3de9717af75d7079f435ebbe90510a924e5 /fs/xfs/scrub/repair.h | |
parent | dacab9b2f2af569d65b8e980ed49edf8914447de (diff) |
xfs: online repair of realtime summariesrepair-fsfile-metadata_2020-06-01
Repair the online summary data.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'fs/xfs/scrub/repair.h')
-rw-r--r-- | fs/xfs/scrub/repair.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/fs/xfs/scrub/repair.h b/fs/xfs/scrub/repair.h index faff602ce2a6..9c5dbd581317 100644 --- a/fs/xfs/scrub/repair.h +++ b/fs/xfs/scrub/repair.h @@ -20,6 +20,9 @@ static inline int xrep_notsupported(struct xfs_scrub *sc) /* Repair helpers */ +enum xfs_blft; +struct xbitmap; + int xrep_attempt(struct xfs_inode *ip, struct xfs_scrub *sc); void xrep_failure(struct xfs_mount *mp); int xrep_roll_ag_trans(struct xfs_scrub *sc); @@ -33,8 +36,13 @@ int xrep_alloc_ag_block(struct xfs_scrub *sc, int xrep_init_btblock(struct xfs_scrub *sc, xfs_fsblock_t fsb, struct xfs_buf **bpp, xfs_btnum_t btnum, const struct xfs_buf_ops *ops); +int xrep_fallocate(struct xfs_scrub *sc, xfs_fileoff_t off, xfs_filblks_t len); -struct xbitmap; +typedef int (*xrep_setfile_getbuf_fn)(struct xfs_scrub *sc, + xfs_fileoff_t off, struct xfs_buf **bpp); +int xrep_set_file_contents(struct xfs_scrub *sc, + const struct xfs_buf_ops *ops, enum xfs_blft type, + xfs_fileoff_t isize); int xrep_fix_freelist(struct xfs_scrub *sc, bool can_shrink); int xrep_reap_extents(struct xfs_scrub *sc, struct xbitmap *exlist, @@ -86,6 +94,11 @@ int xrep_quota(struct xfs_scrub *sc); #else # define xrep_quota xrep_notsupported #endif /* CONFIG_XFS_QUOTA */ +#ifdef CONFIG_XFS_RT +int xrep_rtsummary(struct xfs_scrub *sc); +#else +# define xrep_rtsummary xrep_notsupported +#endif /* CONFIG_XFS_RT */ struct xrep_newbt_resv { /* Link to list of extents that we've reserved. */ @@ -192,6 +205,7 @@ xrep_reset_perag_resv( #define xrep_dir xrep_notsupported #define xrep_xattr xrep_notsupported #define xrep_quota xrep_notsupported +#define xrep_rtsummary xrep_notsupported #endif /* CONFIG_XFS_ONLINE_REPAIR */ |