diff options
Diffstat (limited to 'fs/xfs/scrub/fscounters.c')
-rw-r--r-- | fs/xfs/scrub/fscounters.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/scrub/fscounters.c b/fs/xfs/scrub/fscounters.c index 15b1909786b9..e4d87c6ec17e 100644 --- a/fs/xfs/scrub/fscounters.c +++ b/fs/xfs/scrub/fscounters.c @@ -313,7 +313,7 @@ xchk_fscount_check_frextents( return 0; 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; @@ -332,7 +332,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; } |