diff options
author | jeff <jeff@FreeBSD.org> | 2003-10-04 14:03:28 +0000 |
---|---|---|
committer | jeff <jeff@FreeBSD.org> | 2003-10-04 14:03:28 +0000 |
commit | 9dd2ea10ce86d318cec24de71cd086fc4d3170ff (patch) | |
tree | d839cf924c7b3e8418e110ed682dacb9a42dfadc /sys/ufs | |
parent | 9f8537dbfe8834c026760cc2f196d83605f3c6fd (diff) | |
download | FreeBSD-src-9dd2ea10ce86d318cec24de71cd086fc4d3170ff.zip FreeBSD-src-9dd2ea10ce86d318cec24de71cd086fc4d3170ff.tar.gz |
- Use the VI_LOCK macro in two places where we directly called mtx_lock()
before. Direct calls indicated places that needed review and these have
now been reviewed.
Diffstat (limited to 'sys/ufs')
-rw-r--r-- | sys/ufs/ufs/ufs_ihash.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/ufs/ufs/ufs_ihash.c b/sys/ufs/ufs/ufs_ihash.c index 4f41fae..9329b40 100644 --- a/sys/ufs/ufs/ufs_ihash.c +++ b/sys/ufs/ufs/ufs_ihash.c @@ -125,7 +125,7 @@ loop: LIST_FOREACH(ip, INOHASH(dev, inum), i_hash) { if (inum == ip->i_number && dev == ip->i_dev) { vp = ITOV(ip); - mtx_lock(&vp->v_interlock); + VI_LOCK(vp); mtx_unlock(&ufs_ihash_mtx); error = vget(vp, flags | LK_INTERLOCK, td); if (error == ENOENT) @@ -162,7 +162,7 @@ loop: LIST_FOREACH(oip, ipp, i_hash) { if (ip->i_number == oip->i_number && ip->i_dev == oip->i_dev) { ovp = ITOV(oip); - mtx_lock(&ovp->v_interlock); + VI_LOCK(ovp); mtx_unlock(&ufs_ihash_mtx); error = vget(ovp, flags | LK_INTERLOCK, td); if (error == ENOENT) |