16 lines
432 B
C
Raw Normal View History

2026-01-29 22:25:33 +08:00
// SPDX-License-Identifier: GPL-2.0-or-later
2026-01-21 18:59:54 +08:00
/*
2026-01-29 22:25:33 +08:00
* Copyright (C) 2017-2023 Oracle. All Rights Reserved.
* Author: Darrick J. Wong <djwong@kernel.org>
2026-01-21 18:59:54 +08:00
*/
#ifndef __XFS_SCRUB_H__
#define __XFS_SCRUB_H__
#ifndef CONFIG_XFS_ONLINE_SCRUB
2026-01-29 22:25:33 +08:00
# define xfs_scrub_metadata(file, sm) (-ENOTTY)
2026-01-21 18:59:54 +08:00
#else
2026-01-29 22:25:33 +08:00
int xfs_scrub_metadata(struct file *file, struct xfs_scrub_metadata *sm);
2026-01-21 18:59:54 +08:00
#endif /* CONFIG_XFS_ONLINE_SCRUB */
#endif /* __XFS_SCRUB_H__ */