xref: /linux/fs/xfs/scrub/rtbitmap.h (revision 1a562c0d44974d3cf89c6cc5c34c708c08af420e)
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 
9 struct xchk_rtbitmap {
10 	uint64_t		rextents;
11 	uint64_t		rbmblocks;
12 	unsigned int		rextslog;
13 	unsigned int		resblks;
14 };
15 
16 #ifdef CONFIG_XFS_ONLINE_REPAIR
17 int xrep_setup_rtbitmap(struct xfs_scrub *sc, struct xchk_rtbitmap *rtb);
18 #else
19 # define xrep_setup_rtbitmap(sc, rtb)	(0)
20 #endif /* CONFIG_XFS_ONLINE_REPAIR */
21 
22 #endif /* __XFS_SCRUB_RTBITMAP_H__ */
23