summaryrefslogtreecommitdiff
path: root/fs/xfs/scrub/rtrmap_repair.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/scrub/rtrmap_repair.c')
-rw-r--r--fs/xfs/scrub/rtrmap_repair.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/xfs/scrub/rtrmap_repair.c b/fs/xfs/scrub/rtrmap_repair.c
index 34b1ed463cdd..1605364a4403 100644
--- a/fs/xfs/scrub/rtrmap_repair.c
+++ b/fs/xfs/scrub/rtrmap_repair.c
@@ -351,8 +351,7 @@ xrep_rtrmap_scan_inode(
return 0;
/* Grab inode and lock it so we can scan it. */
- error = xfs_iget(mp, rr->sc->tp, ino,
- XFS_IGET_DONTCACHE | XFS_IGET_UNLINKED, 0, &ip);
+ error = xfs_iget(mp, rr->sc->tp, ino, XFS_IGET_UNLINKED, 0, &ip);
if (error)
return error;
@@ -379,7 +378,7 @@ xrep_rtrmap_scan_inode(
out_unlock:
xfs_iunlock(ip, XFS_ILOCK_SHARED);
out_rele:
- xfs_irele(ip);
+ xchk_irele(rr->sc, ip);
return error;
}