162306a36Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0-or-later
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci * Copyright (C) 2017-2023 Oracle.  All Rights Reserved.
462306a36Sopenharmony_ci * Author: Darrick J. Wong <djwong@kernel.org>
562306a36Sopenharmony_ci */
662306a36Sopenharmony_ci#ifndef __XFS_SCRUB_H__
762306a36Sopenharmony_ci#define __XFS_SCRUB_H__
862306a36Sopenharmony_ci
962306a36Sopenharmony_ci#ifndef CONFIG_XFS_ONLINE_SCRUB
1062306a36Sopenharmony_ci# define xfs_scrub_metadata(file, sm)	(-ENOTTY)
1162306a36Sopenharmony_ci#else
1262306a36Sopenharmony_ciint xfs_scrub_metadata(struct file *file, struct xfs_scrub_metadata *sm);
1362306a36Sopenharmony_ci#endif /* CONFIG_XFS_ONLINE_SCRUB */
1462306a36Sopenharmony_ci
1562306a36Sopenharmony_ci#endif	/* __XFS_SCRUB_H__ */
16