diff options
Diffstat (limited to 'sys/kern/vfs_lookup.c')
-rw-r--r-- | sys/kern/vfs_lookup.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/kern/vfs_lookup.c b/sys/kern/vfs_lookup.c index fb3e6a7a2534..39c7da803de1 100644 --- a/sys/kern/vfs_lookup.c +++ b/sys/kern/vfs_lookup.c @@ -883,7 +883,7 @@ vfs_lookup_degenerate(struct nameidata *ndp, struct vnode *dp, int wantparent) } if (wantparent) { ndp->ni_dvp = dp; - VREF(dp); + vref(dp); } ndp->ni_vp = dp; cnp->cn_namelen = 0; @@ -1121,7 +1121,7 @@ vfs_lookup(struct nameidata *ndp) cnp->cn_lkflags = LK_SHARED; dp = ndp->ni_startdir; - ndp->ni_startdir = NULLVP; + ndp->ni_startdir = NULL; /* * Leading slashes, if any, are supposed to be skipped by the caller. @@ -1284,7 +1284,7 @@ dirloop: (cnp->cn_flags & NOCROSSMOUNT) != 0)) { ndp->ni_dvp = dp; ndp->ni_vp = dp; - VREF(dp); + vref(dp); goto nextname; } if ((dp->v_vflag & VV_ROOT) == 0) @@ -1295,7 +1295,7 @@ dirloop: } tdp = dp; dp = dp->v_mount->mnt_vnodecovered; - VREF(dp); + vref(dp); vput(tdp); vn_lock(dp, enforce_lkflags(dp->v_mount, cnp->cn_lkflags | @@ -1343,7 +1343,7 @@ unionlookup: (dp->v_mount->mnt_flag & MNT_UNION)) { tdp = dp; dp = dp->v_mount->mnt_vnodecovered; - VREF(dp); + vref(dp); vput(tdp); vn_lock(dp, enforce_lkflags(dp->v_mount, cnp->cn_lkflags | @@ -1615,7 +1615,7 @@ vfs_relookup(struct vnode *dvp, struct vnode **vpp, struct componentname *cnp, } /* ASSERT(dvp == ndp->ni_startdir) */ if (refstart) - VREF(dvp); + vref(dvp); if ((cnp->cn_flags & LOCKPARENT) == 0) VOP_UNLOCK(dp); /* @@ -1653,7 +1653,7 @@ vfs_relookup(struct vnode *dvp, struct vnode **vpp, struct componentname *cnp, /* ASSERT(dvp == ndp->ni_startdir) */ if (refstart) - VREF(dvp); + vref(dvp); if ((cnp->cn_flags & LOCKLEAF) == 0) VOP_UNLOCK(dp); |