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
10struct xrep_tempexch {
11	struct xfs_exchmaps_req	req;
12};
13
14int xrep_tempexch_trans_reserve(struct xfs_scrub *sc, int whichfork,
15		struct xrep_tempexch *ti);
16int xrep_tempexch_trans_alloc(struct xfs_scrub *sc, int whichfork,
17		struct xrep_tempexch *ti);
18
19int 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