1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright (C) 2018-2023 Oracle. All Rights Reserved.
6 #ifndef __XFS_SCRUB_QUOTA_H__
7 #define __XFS_SCRUB_QUOTA_H__
9 xfs_dqtype_t xchk_quota_to_dqtype(struct xfs_scrub *sc);
11 /* dquot iteration code */
16 /* Quota file that we're walking. */
17 struct xfs_inode *quota_ip;
19 /* Cached data fork mapping for the dquot. */
20 struct xfs_bmbt_irec bmap;
22 /* The next dquot to scan. */
25 /* Quota type (user/group/project). */
28 /* Data fork sequence number to detect stale mappings. */
32 void xchk_dqiter_init(struct xchk_dqiter *cursor, struct xfs_scrub *sc,
34 int xchk_dquot_iter(struct xchk_dqiter *cursor, struct xfs_dquot **dqpp);
36 #endif /* __XFS_SCRUB_QUOTA_H__ */