2023-04-12 09:59:56 +08:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2017-10-18 12:37:34 +08:00
|
|
|
/*
|
2023-04-12 09:59:57 +08:00
|
|
|
* Copyright (C) 2017-2023 Oracle. All Rights Reserved.
|
2023-04-12 09:59:56 +08:00
|
|
|
* Author: Darrick J. Wong <djwong@kernel.org>
|
2017-10-18 12:37:34 +08:00
|
|
|
*/
|
|
|
|
#ifndef __XFS_SCRUB_H__
|
|
|
|
#define __XFS_SCRUB_H__
|
|
|
|
|
|
|
|
#ifndef CONFIG_XFS_ONLINE_SCRUB
|
2021-03-23 00:51:51 +08:00
|
|
|
# define xfs_scrub_metadata(file, sm) (-ENOTTY)
|
2017-10-18 12:37:34 +08:00
|
|
|
#else
|
2021-03-23 00:51:51 +08:00
|
|
|
int xfs_scrub_metadata(struct file *file, struct xfs_scrub_metadata *sm);
|
2017-10-18 12:37:34 +08:00
|
|
|
#endif /* CONFIG_XFS_ONLINE_SCRUB */
|
|
|
|
|
|
|
|
#endif /* __XFS_SCRUB_H__ */
|