summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_cache.c
diff options
context:
space:
mode:
authorvisa <visa@openbsd.org>2018-05-27 06:02:14 +0000
committervisa <visa@openbsd.org>2018-05-27 06:02:14 +0000
commit08107a0b7d66fc523db27a131ca819e179fb022c (patch)
treedec151949c5d42646c0506366997d59fb2f1e1c0 /sys/kern/vfs_cache.c
parentDelete obsolete reference to setting segment registers (diff)
downloadwireguard-openbsd-08107a0b7d66fc523db27a131ca819e179fb022c.tar.xz
wireguard-openbsd-08107a0b7d66fc523db27a131ca819e179fb022c.zip
Drop unnecessary `p' parameter from vget(9).
OK mpi@
Diffstat (limited to 'sys/kern/vfs_cache.c')
-rw-r--r--sys/kern/vfs_cache.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/kern/vfs_cache.c b/sys/kern/vfs_cache.c
index c1c87183b8a..f3c3996f332 100644
--- a/sys/kern/vfs_cache.c
+++ b/sys/kern/vfs_cache.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vfs_cache.c,v 1.55 2018/05/02 02:24:56 visa Exp $ */
+/* $OpenBSD: vfs_cache.c,v 1.56 2018/05/27 06:02:14 visa Exp $ */
/* $NetBSD: vfs_cache.c,v 1.13 1996/02/04 02:18:09 christos Exp $ */
/*
@@ -145,7 +145,6 @@ cache_lookup(struct vnode *dvp, struct vnode **vpp,
struct namecache *ncp;
struct namecache n;
struct vnode *vp;
- struct proc *p = curproc;
u_long vpid;
int error;
@@ -211,7 +210,7 @@ cache_lookup(struct vnode *dvp, struct vnode **vpp,
} else if (cnp->cn_flags & ISDOTDOT) {
VOP_UNLOCK(dvp);
cnp->cn_flags |= PDIRUNLOCK;
- error = vget(vp, LK_EXCLUSIVE, p);
+ error = vget(vp, LK_EXCLUSIVE);
/*
* If the above vget() succeeded and both LOCKPARENT and
* ISLASTCN is set, lock the directory vnode as well.
@@ -224,7 +223,7 @@ cache_lookup(struct vnode *dvp, struct vnode **vpp,
cnp->cn_flags &= ~PDIRUNLOCK;
}
} else {
- error = vget(vp, LK_EXCLUSIVE, p);
+ error = vget(vp, LK_EXCLUSIVE);
/*
* If the above vget() failed or either of LOCKPARENT or
* ISLASTCN is set, unlock the directory vnode.