summaryrefslogtreecommitdiffstats
path: root/fs/xfs/scrub/scrub.c
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2017-10-17 21:37:46 -0700
committerDarrick J. Wong <darrick.wong@oracle.com>2017-10-26 15:38:26 -0700
commit0f28b25731f76feda1ec71671754a2b7179ee1ef (patch)
tree691296676679eb093b5123cb76a73683e74ad681 /fs/xfs/scrub/scrub.c
parent2a721dbbc8bf4d76581fb073aa0d9554df56da1a (diff)
downloadlinux-0f28b25731f76feda1ec71671754a2b7179ee1ef.tar.bz2
xfs: scrub directory parent pointers
Scrub parent pointers, sort of. For directories, we can ride the '..' entry up to the parent to confirm that there's at most one dentry that points back to this directory. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Dave Chinner <dchinner@redhat.com>
Diffstat (limited to 'fs/xfs/scrub/scrub.c')
-rw-r--r--fs/xfs/scrub/scrub.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/xfs/scrub/scrub.c b/fs/xfs/scrub/scrub.c
index 14487279d460..e9c6635f7d5a 100644
--- a/fs/xfs/scrub/scrub.c
+++ b/fs/xfs/scrub/scrub.c
@@ -243,6 +243,10 @@ static const struct xfs_scrub_meta_ops meta_scrub_ops[] = {
.setup = xfs_scrub_setup_symlink,
.scrub = xfs_scrub_symlink,
},
+ { /* parent pointers */
+ .setup = xfs_scrub_setup_parent,
+ .scrub = xfs_scrub_parent,
+ },
};
/* This isn't a stable feature, warn once per day. */