rtbitmap.h 568 B

12345678910111213141516171819202122
  1. // SPDX-License-Identifier: GPL-2.0-or-later
  2. /*
  3. * Copyright (C) 2023 Oracle. All Rights Reserved.
  4. * Author: Darrick J. Wong <djwong@kernel.org>
  5. */
  6. #ifndef __XFS_SCRUB_RTBITMAP_H__
  7. #define __XFS_SCRUB_RTBITMAP_H__
  8. struct xchk_rtbitmap {
  9. uint64_t rextents;
  10. uint64_t rbmblocks;
  11. unsigned int rextslog;
  12. unsigned int resblks;
  13. };
  14. #ifdef CONFIG_XFS_ONLINE_REPAIR
  15. int xrep_setup_rtbitmap(struct xfs_scrub *sc, struct xchk_rtbitmap *rtb);
  16. #else
  17. # define xrep_setup_rtbitmap(sc, rtb) (0)
  18. #endif /* CONFIG_XFS_ONLINE_REPAIR */
  19. #endif /* __XFS_SCRUB_RTBITMAP_H__ */