blob: 7728dfd618a4d877aa6a05f92ee302226ea0105f [file] [log] [blame]
Darrick J. Wonga2114322019-07-02 09:39:38 -07001/* SPDX-License-Identifier: GPL-2.0-or-later */
2/*
3 * Copyright (C) 2019 Oracle. All Rights Reserved.
4 * Author: Darrick J. Wong <darrick.wong@oracle.com>
5 */
6#ifndef __XFS_IWALK_H__
7#define __XFS_IWALK_H__
8
9/* Walk all inodes in the filesystem starting from @startino. */
10typedef int (*xfs_iwalk_fn)(struct xfs_mount *mp, struct xfs_trans *tp,
11 xfs_ino_t ino, void *data);
12/* Return values for xfs_iwalk_fn. */
13#define XFS_IWALK_CONTINUE (XFS_ITER_CONTINUE)
14#define XFS_IWALK_ABORT (XFS_ITER_ABORT)
15
16int xfs_iwalk(struct xfs_mount *mp, struct xfs_trans *tp, xfs_ino_t startino,
17 xfs_iwalk_fn iwalk_fn, unsigned int inode_records, void *data);
18
19#endif /* __XFS_IWALK_H__ */