diff options
author | Darrick J. Wong <djwong@kernel.org> | 2022-07-14 11:06:57 -0700 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2022-10-14 14:16:55 -0700 |
commit | fda03069f8f633b69603624b89ba6a9a2ceb77a4 (patch) | |
tree | 15d3aa645625bcecd87d3385378146e694f5c166 /fs/xfs/scrub/parent.h | |
parent | 7ae15be4ced5d9da0732370b067945448a9923b1 (diff) |
xfs: ask the dentry cache if it knows the parent of a directoryrepair-dirs_2022-10-14
It's possible that the dentry cache can tell us the parent of a
directory. Therefore, when repairing directory dot dot entries, query
the dcache as a last resort before scanning the entire filesystem.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to 'fs/xfs/scrub/parent.h')
-rw-r--r-- | fs/xfs/scrub/parent.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/xfs/scrub/parent.h b/fs/xfs/scrub/parent.h index e1979f5bb001..c20673d8f093 100644 --- a/fs/xfs/scrub/parent.h +++ b/fs/xfs/scrub/parent.h @@ -10,6 +10,7 @@ int xchk_parent_lock_two_dirs(struct xfs_scrub *sc, struct xfs_inode *dp); int xrep_parent_confirm(struct xfs_scrub *sc, xfs_ino_t *parent_ino); int xrep_parent_scan(struct xfs_scrub *sc, xfs_ino_t *parent_ino); +xfs_ino_t xrep_parent_from_dcache(struct xfs_scrub *sc); xfs_ino_t xrep_parent_self_reference(struct xfs_scrub *sc); |