From 8b1498533cb77f0625f460963cc090d2a7207173 Mon Sep 17 00:00:00 2001 From: "Darrick J. Wong" Date: Wed, 17 Mar 2021 16:31:31 -0700 Subject: xfs: teach repair to fix file nlinks Fix the nlinks now too. Signed-off-by: Darrick J. Wong --- fs/xfs/scrub/scrub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fs/xfs/scrub/scrub.c') diff --git a/fs/xfs/scrub/scrub.c b/fs/xfs/scrub/scrub.c index 1d51a6002ede..c17b0ef24a0e 100644 --- a/fs/xfs/scrub/scrub.c +++ b/fs/xfs/scrub/scrub.c @@ -409,7 +409,7 @@ static const struct xchk_meta_ops meta_scrub_ops[] = { .type = ST_FS, .setup = xchk_setup_nlinks, .scrub = xchk_nlinks, - .repair = xrep_notsupported, + .repair = xrep_nlinks, }, }; -- cgit v1.2.3