summaryrefslogtreecommitdiff
path: root/fs/xfs/scrub/tempfile.h
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2021-09-01 10:59:04 -0700
committerDarrick J. Wong <djwong@kernel.org>2021-12-15 17:29:02 -0800
commita72e974d1b31e1d23f088e3f910d33094da2e174 (patch)
tree4530bc3b81887b7e1723d2c098fdd5982268c211 /fs/xfs/scrub/tempfile.h
parent4624f8c76088688180c5a5a455a89d47935fa570 (diff)
xfs: online repair of realtime summariesrepair-rtsummary_2021-12-15
Repair the realtime summary data by constructing a new rtsummary file in the scrub temporary file, then atomically swapping the contents. Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to 'fs/xfs/scrub/tempfile.h')
-rw-r--r--fs/xfs/scrub/tempfile.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/fs/xfs/scrub/tempfile.h b/fs/xfs/scrub/tempfile.h
index a6a4c8d6a373..2b9a9e6fa9d9 100644
--- a/fs/xfs/scrub/tempfile.h
+++ b/fs/xfs/scrub/tempfile.h
@@ -13,6 +13,20 @@ void xrep_tempfile_rele(struct xfs_scrub *sc);
void xrep_tempfile_ilock(struct xfs_scrub *sc, unsigned int ilock_flags);
bool xrep_tempfile_ilock_nowait(struct xfs_scrub *sc, unsigned int ilock_flags);
void xrep_tempfile_iunlock(struct xfs_scrub *sc, unsigned int ilock_flags);
+
+int xrep_tempfile_prealloc(struct xfs_scrub *sc, xfs_fileoff_t off,
+ xfs_filblks_t len);
+
+enum xfs_blft;
+
+int xrep_tempfile_copyin_xfile(struct xfs_scrub *sc,
+ const struct xfs_buf_ops *ops, enum xfs_blft type,
+ xfs_fileoff_t isize);
+
+struct xfs_swapext_req;
+int xrep_tempfile_swapext_prep_request(struct xfs_scrub *sc, int whichfork,
+ struct xfs_swapext_req *req);
+int xrep_tempfile_swapext(struct xfs_scrub *sc, struct xfs_swapext_req *req);
#else
# define xrep_tempfile_rele(sc)
#endif /* CONFIG_XFS_ONLINE_REPAIR */