xfs_scrub.h 538 B

1234567891011121314151617
  1. // SPDX-License-Identifier: GPL-2.0-or-later
  2. /*
  3. * Copyright (C) 2017-2023 Oracle. All Rights Reserved.
  4. * Author: Darrick J. Wong <djwong@kernel.org>
  5. */
  6. #ifndef __XFS_SCRUB_H__
  7. #define __XFS_SCRUB_H__
  8. #ifndef CONFIG_XFS_ONLINE_SCRUB
  9. # define xfs_ioc_scrub_metadata(f, a) (-ENOTTY)
  10. # define xfs_ioc_scrubv_metadata(f, a) (-ENOTTY)
  11. #else
  12. int xfs_ioc_scrub_metadata(struct file *file, void __user *arg);
  13. int xfs_ioc_scrubv_metadata(struct file *file, void __user *arg);
  14. #endif /* CONFIG_XFS_ONLINE_SCRUB */
  15. #endif /* __XFS_SCRUB_H__ */