Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
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 xfs_fileoff_t off, xfs_filblks_t len, 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__ */