diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2020-10-25 17:16:17 -0700 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2020-10-26 18:32:36 -0700 |
commit | 28b0e24a0a55b991cf5a6c4bbf6376669de5fb5a (patch) | |
tree | fef1241e2003ff817e04b14cb3d64c659103dcae /fs/xfs/xfs_fsmap.c | |
parent | e4cb194efbdb5d1ac8e285786f911c293a148525 (diff) |
xfs: refactor realtime inode lockingrefactor-rt-locking_2020-10-26
Refactor realtime metadata inode locking so that we can get some sense
here.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'fs/xfs/xfs_fsmap.c')
-rw-r--r-- | fs/xfs/xfs_fsmap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/xfs_fsmap.c b/fs/xfs/xfs_fsmap.c index 9ce5e7d5bf8f..c8eb222a6e70 100644 --- a/fs/xfs/xfs_fsmap.c +++ b/fs/xfs/xfs_fsmap.c @@ -524,7 +524,7 @@ xfs_getfsmap_rtdev_rtbitmap_query( struct xfs_rtalloc_rec ahigh = { 0 }; int error; - xfs_ilock(tp->t_mountp->m_rbmip, XFS_ILOCK_SHARED); + xfs_rtlock(NULL, tp->t_mountp, XFS_RTLOCK_ALL); alow.ar_startext = info->low.rm_startblock; ahigh.ar_startext = info->high.rm_startblock; @@ -542,7 +542,7 @@ xfs_getfsmap_rtdev_rtbitmap_query( if (error) goto err; err: - xfs_iunlock(tp->t_mountp->m_rbmip, XFS_ILOCK_SHARED); + xfs_rtunlock(tp->t_mountp, XFS_RTLOCK_ALL); return error; } |