diff options
author | Visa Hankala <visa@cvs.openbsd.org> | 2018-04-28 03:13:06 +0000 |
---|---|---|
committer | Visa Hankala <visa@cvs.openbsd.org> | 2018-04-28 03:13:06 +0000 |
commit | 356327a519a213c5d0b435c6d4488b3c5f0b3efc (patch) | |
tree | 446ed191773422bb8b098be33ad3b13d10a3c43e /sys/nfs/nfs_vnops.c | |
parent | d8f64152dfaaddf25de9dca020b84c322b874855 (diff) |
Clean up the parameters of VOP_LOCK() and VOP_UNLOCK(). It is always
curproc that does the locking or unlocking, so the proc parameter
is pointless and can be dropped.
OK mpi@, deraadt@
Diffstat (limited to 'sys/nfs/nfs_vnops.c')
-rw-r--r-- | sys/nfs/nfs_vnops.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/nfs/nfs_vnops.c b/sys/nfs/nfs_vnops.c index aacaed26dac..90ecf936bef 100644 --- a/sys/nfs/nfs_vnops.c +++ b/sys/nfs/nfs_vnops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nfs_vnops.c,v 1.173 2018/04/25 15:53:08 visa Exp $ */ +/* $OpenBSD: nfs_vnops.c,v 1.174 2018/04/28 03:13:05 visa Exp $ */ /* $NetBSD: nfs_vnops.c,v 1.62.4.1 1996/07/08 20:26:52 jtc Exp $ */ /* @@ -838,7 +838,7 @@ nfs_lookup(void *v) cnp->cn_flags |= SAVENAME; if ((!lockparent || !(flags & ISLASTCN)) && newvp != dvp) { - VOP_UNLOCK(dvp, p); + VOP_UNLOCK(dvp); cnp->cn_flags |= PDIRUNLOCK; } return (0); @@ -897,7 +897,7 @@ dorpc: m_freem(info.nmi_mrep); cnp->cn_flags |= SAVENAME; if (!lockparent) { - VOP_UNLOCK(dvp, p); + VOP_UNLOCK(dvp); cnp->cn_flags |= PDIRUNLOCK; } return (0); @@ -918,7 +918,7 @@ dorpc: } else nfsm_loadattr(newvp, NULL); } else if (flags & ISDOTDOT) { - VOP_UNLOCK(dvp, p); + VOP_UNLOCK(dvp); cnp->cn_flags |= PDIRUNLOCK; error = nfs_nget(dvp->v_mount, fhp, fhsize, &np); @@ -958,7 +958,7 @@ dorpc: } else nfsm_loadattr(newvp, NULL); if (!lockparent || !(flags & ISLASTCN)) { - VOP_UNLOCK(dvp, p); + VOP_UNLOCK(dvp); cnp->cn_flags |= PDIRUNLOCK; } } |