accel/qaic: Add AIC200 support
[drm/drm-misc.git] / fs / xfs / scrub / readdir.h
blobda501877a64ddaa281332365bff100cd3cfbec62
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3 * Copyright (C) 2022-2023 Oracle. All Rights Reserved.
4 * Author: Darrick J. Wong <djwong@kernel.org>
5 */
6 #ifndef __XFS_SCRUB_READDIR_H__
7 #define __XFS_SCRUB_READDIR_H__
9 typedef int (*xchk_dirent_fn)(struct xfs_scrub *sc, struct xfs_inode *dp,
10 xfs_dir2_dataptr_t dapos, const struct xfs_name *name,
11 xfs_ino_t ino, void *priv);
13 int xchk_dir_walk(struct xfs_scrub *sc, struct xfs_inode *dp,
14 xchk_dirent_fn dirent_fn, void *priv);
16 int xchk_dir_lookup(struct xfs_scrub *sc, struct xfs_inode *dp,
17 const struct xfs_name *name, xfs_ino_t *ino);
19 int xchk_dir_trylock_for_pptrs(struct xfs_scrub *sc, struct xfs_inode *ip,
20 unsigned int *lockmode);
22 #endif /* __XFS_SCRUB_READDIR_H__ */