diff options
Diffstat (limited to 'fs/xfs/scrub/nlinks.h')
-rw-r--r-- | fs/xfs/scrub/nlinks.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/xfs/scrub/nlinks.h b/fs/xfs/scrub/nlinks.h index 0ece2ab5dd38..868bdf6e4172 100644 --- a/fs/xfs/scrub/nlinks.h +++ b/fs/xfs/scrub/nlinks.h @@ -44,6 +44,9 @@ struct xchk_nlink { /* This data item was seen by the check-time compare function. */ #define XCHK_NLINK_COMPARE_SCANNED (1U << 0) +/* Item was modified by the repair function. */ +#define XREP_NLINK_DIRTY (1U << 1) + /* Compute total link count, using large enough variables to detect overflow. */ static inline uint64_t xchk_nlink_total(const struct xchk_nlink *live) @@ -53,4 +56,7 @@ xchk_nlink_total(const struct xchk_nlink *live) return ret + live->child; } +int xchk_nlinks_get_record(struct xchk_nlink_ctrs *xnc, xfs_ino_t ino, + struct xchk_nlink *nl); + #endif /* __XFS_SCRUB_NLINKS_H__ */ |