#ifndef __XFS_SCRUB_DIRTREE_H__
#define __XFS_SCRUB_DIRTREE_H__
struct xchk_dirpath_step { … };
enum xchk_dirpath_outcome { … };
struct xchk_dirpath { … };
struct xchk_dirtree_outcomes { … };
struct xchk_dirtree { … };
#define xchk_dirtree_for_each_path_safe(dl, path, n) …
#define xchk_dirtree_for_each_path(dl, path) …
static inline bool
xchk_dirtree_parentless(const struct xchk_dirtree *dl)
{ … }
int xchk_dirtree_find_paths_to_root(struct xchk_dirtree *dl);
int xchk_dirpath_append(struct xchk_dirtree *dl, struct xfs_inode *ip,
struct xchk_dirpath *path, const struct xfs_name *name,
const struct xfs_parent_rec *pptr);
void xchk_dirtree_evaluate(struct xchk_dirtree *dl,
struct xchk_dirtree_outcomes *oc);
#endif