From 356327a519a213c5d0b435c6d4488b3c5f0b3efc Mon Sep 17 00:00:00 2001 From: Visa Hankala Date: Sat, 28 Apr 2018 03:13:06 +0000 Subject: 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@ --- sys/nfs/nfs_vnops.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'sys/nfs/nfs_vnops.c') 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; } } -- cgit v1.2.3