summaryrefslogtreecommitdiff
path: root/fs/xfs/scrub/scrub.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/scrub/scrub.c')
-rw-r--r--fs/xfs/scrub/scrub.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/xfs/scrub/scrub.c b/fs/xfs/scrub/scrub.c
index d6f7d8cf20e7..f65bc7a10c37 100644
--- a/fs/xfs/scrub/scrub.c
+++ b/fs/xfs/scrub/scrub.c
@@ -204,6 +204,12 @@ xchk_teardown(
xfs_irele(sc->tempip);
sc->tempip = NULL;
}
+ if (sc->orphanage) {
+ if (sc->orphanage_ilock_flags)
+ xfs_iunlock(sc->orphanage, sc->orphanage_ilock_flags);
+ xfs_irele(sc->orphanage);
+ sc->orphanage = NULL;
+ }
return error;
}