xref: /linux/fs/xfs/scrub/attr.h (revision 31ca5d49264ba6197aa48a926f6a035ed08b3715)
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3  * Copyright (C) 2019-2023 Oracle.  All Rights Reserved.
4  * Author: Darrick J. Wong <djwong@kernel.org>
5  */
6 #ifndef __XFS_SCRUB_ATTR_H__
7 #define __XFS_SCRUB_ATTR_H__
8 
9 /*
10  * Temporary storage for online scrub and repair of extended attributes.
11  */
12 struct xchk_xattr_buf {
13 	/* Bitmap of used space in xattr leaf blocks and shortform forks. */
14 	unsigned long		*usedmap;
15 
16 	/* Bitmap of free space in xattr leaf blocks. */
17 	unsigned long		*freemap;
18 
19 	/* Memory buffer used to extract xattr values. */
20 	void			*value;
21 	size_t			value_sz;
22 };
23 
24 #endif	/* __XFS_SCRUB_ATTR_H__ */
25