18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0+
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Copyright (C) 2017 Oracle.  All Rights Reserved.
48c2ecf20Sopenharmony_ci * Author: Darrick J. Wong <darrick.wong@oracle.com>
58c2ecf20Sopenharmony_ci */
68c2ecf20Sopenharmony_ci#ifndef __XFS_SCRUB_H__
78c2ecf20Sopenharmony_ci#define __XFS_SCRUB_H__
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ci#ifndef CONFIG_XFS_ONLINE_SCRUB
108c2ecf20Sopenharmony_ci# define xfs_scrub_metadata(ip, sm)	(-ENOTTY)
118c2ecf20Sopenharmony_ci#else
128c2ecf20Sopenharmony_ciint xfs_scrub_metadata(struct xfs_inode *ip, struct xfs_scrub_metadata *sm);
138c2ecf20Sopenharmony_ci#endif /* CONFIG_XFS_ONLINE_SCRUB */
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_ci#endif	/* __XFS_SCRUB_H__ */
16