mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-14 15:54:15 +08:00
6d335233fe
The atomic file exchange-range functionality is now a permanent filesystem feature instead of a dynamic log-incompat feature. It cannot be turned on at runtime, so we no longer need the XCHK_FSGATES flags and whatnot that supported it. Remove the flag and the enable function, and move the xfs_has_exchange_range checks to the start of the repair functions. Signed-off-by: Darrick J. Wong <djwong@kernel.org> Reviewed-by: Christoph Hellwig <hch@lst.de>
23 lines
660 B
C
23 lines
660 B
C
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
/*
|
|
* Copyright (c) 2022-2024 Oracle. All Rights Reserved.
|
|
* Author: Darrick J. Wong <djwong@kernel.org>
|
|
*/
|
|
#ifndef __XFS_SCRUB_TEMPEXCH_H__
|
|
#define __XFS_SCRUB_TEMPEXCH_H__
|
|
|
|
#ifdef CONFIG_XFS_ONLINE_REPAIR
|
|
struct xrep_tempexch {
|
|
struct xfs_exchmaps_req req;
|
|
};
|
|
|
|
int xrep_tempexch_trans_reserve(struct xfs_scrub *sc, int whichfork,
|
|
struct xrep_tempexch *ti);
|
|
int xrep_tempexch_trans_alloc(struct xfs_scrub *sc, int whichfork,
|
|
struct xrep_tempexch *ti);
|
|
|
|
int xrep_tempexch_contents(struct xfs_scrub *sc, struct xrep_tempexch *ti);
|
|
#endif /* CONFIG_XFS_ONLINE_REPAIR */
|
|
|
|
#endif /* __XFS_SCRUB_TEMPEXCH_H__ */
|