1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00

- 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.
This commit is contained in:
Jeff Roberson 2003-10-04 14:03:28 +00:00
parent 8f2e9e4388
commit 90e1659e41
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=120738

View File

@ -125,7 +125,7 @@ ufs_ihashget(dev, inum, flags, vpp)
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 @@ ufs_ihashins(ip, flags, ovpp)
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)