summaryrefslogtreecommitdiff
path: root/fs/xfs/scrub/fscounters.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/scrub/fscounters.c')
-rw-r--r--fs/xfs/scrub/fscounters.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/scrub/fscounters.c b/fs/xfs/scrub/fscounters.c
index d231aca7daa6..f7e7ae58b4a4 100644
--- a/fs/xfs/scrub/fscounters.c
+++ b/fs/xfs/scrub/fscounters.c
@@ -316,7 +316,7 @@ xchk_fscount_check_frextents(
}
fsc->frextents = 0;
- xfs_ilock(sc->mp->m_rbmip, XFS_ILOCK_EXCL);
+ xfs_rtlock(NULL, sc->mp, XFS_RTLOCK_ALL);
error = xfs_rtalloc_query_all(sc->tp, xchk_fscount_add_frextent, fsc);
if (error)
goto out_unlock;
@@ -335,7 +335,7 @@ xchk_fscount_check_frextents(
spin_unlock(&mp->m_sb_lock);
out_unlock:
- xfs_iunlock(sc->mp->m_rbmip, XFS_ILOCK_EXCL);
+ xfs_rtunlock(sc->mp, XFS_RTLOCK_ALL);
return error;
}
#else