xref: /linux/fs/xfs/scrub/tempexch.h (revision 90d32e92011eaae8e70a9169b4e7acf4ca8f9d3a)
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3  * Copyright (c) 2022-2024 Oracle.  All Rights Reserved.
4  * Author: Darrick J. Wong <djwong@kernel.org>
5  */
6 #ifndef __XFS_SCRUB_TEMPEXCH_H__
7 #define __XFS_SCRUB_TEMPEXCH_H__
8 
9 #ifdef CONFIG_XFS_ONLINE_REPAIR
10 struct xrep_tempexch {
11 	struct xfs_exchmaps_req	req;
12 };
13 
14 int xrep_tempexch_trans_reserve(struct xfs_scrub *sc, int whichfork,
15 		struct xrep_tempexch *ti);
16 int xrep_tempexch_trans_alloc(struct xfs_scrub *sc, int whichfork,
17 		struct xrep_tempexch *ti);
18 
19 int xrep_tempexch_contents(struct xfs_scrub *sc, struct xrep_tempexch *ti);
20 #endif /* CONFIG_XFS_ONLINE_REPAIR */
21 
22 #endif /* __XFS_SCRUB_TEMPEXCH_H__ */
23