162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci * Copyright (C) 2022-2023 Oracle.  All Rights Reserved.
462306a36Sopenharmony_ci * Author: Darrick J. Wong <djwong@kernel.org>
562306a36Sopenharmony_ci */
662306a36Sopenharmony_ci#ifndef __XFS_SCRUB_READDIR_H__
762306a36Sopenharmony_ci#define __XFS_SCRUB_READDIR_H__
862306a36Sopenharmony_ci
962306a36Sopenharmony_citypedef int (*xchk_dirent_fn)(struct xfs_scrub *sc, struct xfs_inode *dp,
1062306a36Sopenharmony_ci		xfs_dir2_dataptr_t dapos, const struct xfs_name *name,
1162306a36Sopenharmony_ci		xfs_ino_t ino, void *priv);
1262306a36Sopenharmony_ci
1362306a36Sopenharmony_ciint xchk_dir_walk(struct xfs_scrub *sc, struct xfs_inode *dp,
1462306a36Sopenharmony_ci		xchk_dirent_fn dirent_fn, void *priv);
1562306a36Sopenharmony_ci
1662306a36Sopenharmony_ciint xchk_dir_lookup(struct xfs_scrub *sc, struct xfs_inode *dp,
1762306a36Sopenharmony_ci		const struct xfs_name *name, xfs_ino_t *ino);
1862306a36Sopenharmony_ci
1962306a36Sopenharmony_ci#endif /* __XFS_SCRUB_READDIR_H__ */
20