summaryrefslogtreecommitdiff
path: root/fs/xfs/scrub/scrub.c
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2020-02-25 15:13:48 -0800
committerDarrick J. Wong <darrick.wong@oracle.com>2020-03-03 18:47:38 -0800
commitfaa8f3b259634ed6f67d4464d1da7e2fb7df1d99 (patch)
tree559b10d4390e35ceabad4b67217421fcf2bf8d99 /fs/xfs/scrub/scrub.c
parent90b7d9278f82ebaa5a0e357dbdc3bcc15cd127cc (diff)
xfs: online repair of directoriesrepair-inode-data_2020-03-03
If a directory looks like it's in bad shape, try to sift through the rubble to find whatever directory entries we can, zap the old tree, and re-add the entries. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'fs/xfs/scrub/scrub.c')
-rw-r--r--fs/xfs/scrub/scrub.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/scrub/scrub.c b/fs/xfs/scrub/scrub.c
index 86493e6cc712..022393e9a753 100644
--- a/fs/xfs/scrub/scrub.c
+++ b/fs/xfs/scrub/scrub.c
@@ -285,7 +285,7 @@ static const struct xchk_meta_ops meta_scrub_ops[] = {
.type = ST_INODE,
.setup = xchk_setup_directory,
.scrub = xchk_directory,
- .repair = xrep_notsupported,
+ .repair = xrep_dir,
},
[XFS_SCRUB_TYPE_XATTR] = { /* extended attributes */
.type = ST_INODE,