diff options
author | Visa Hankala <visa@cvs.openbsd.org> | 2018-05-27 06:02:16 +0000 |
---|---|---|
committer | Visa Hankala <visa@cvs.openbsd.org> | 2018-05-27 06:02:16 +0000 |
commit | 8e4bc01cbdf7ca1a1a77219b742a496f8cc29087 (patch) | |
tree | c8bd46cd06278e2a2e3dbdd55b3e8e4ca90be921 /sys/nfs | |
parent | 4299f29c929116884e41aa3622afa672eb6c591f (diff) |
Drop unnecessary `p' parameter from vget(9).
OK mpi@
Diffstat (limited to 'sys/nfs')
-rw-r--r-- | sys/nfs/nfs_node.c | 5 | ||||
-rw-r--r-- | sys/nfs/nfs_vfsops.c | 4 |
2 files changed, 4 insertions, 5 deletions
diff --git a/sys/nfs/nfs_node.c b/sys/nfs/nfs_node.c index fb1ab732654..155426e3666 100644 --- a/sys/nfs/nfs_node.c +++ b/sys/nfs/nfs_node.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nfs_node.c,v 1.69 2018/05/05 11:54:11 mpi Exp $ */ +/* $OpenBSD: nfs_node.c,v 1.70 2018/05/27 06:02:15 visa Exp $ */ /* $NetBSD: nfs_node.c,v 1.16 1996/02/18 11:53:42 fvdl Exp $ */ /* @@ -90,7 +90,6 @@ nfs_nget(struct mount *mnt, nfsfh_t *fh, int fhsize, struct nfsnode **npp) struct nfsmount *nmp; struct nfsnode *np, find, *np2; struct vnode *vp, *nvp; - struct proc *p = curproc; /* XXX */ int error; nmp = VFSTONFS(mnt); @@ -101,7 +100,7 @@ loop: np = RBT_FIND(nfs_nodetree, &nmp->nm_ntree, &find); if (np != NULL) { vp = NFSTOV(np); - error = vget(vp, LK_EXCLUSIVE, p); + error = vget(vp, LK_EXCLUSIVE); if (error) goto loop; *npp = np; diff --git a/sys/nfs/nfs_vfsops.c b/sys/nfs/nfs_vfsops.c index ae0b858104d..d2dbc4a09dc 100644 --- a/sys/nfs/nfs_vfsops.c +++ b/sys/nfs/nfs_vfsops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nfs_vfsops.c,v 1.120 2018/05/04 11:16:04 bluhm Exp $ */ +/* $OpenBSD: nfs_vfsops.c,v 1.121 2018/05/27 06:02:15 visa Exp $ */ /* $NetBSD: nfs_vfsops.c,v 1.46.4.1 1996/05/25 22:40:35 fvdl Exp $ */ /* @@ -814,7 +814,7 @@ loop: goto loop; if (VOP_ISLOCKED(vp) || LIST_FIRST(&vp->v_dirtyblkhd) == NULL) continue; - if (vget(vp, LK_EXCLUSIVE, p)) + if (vget(vp, LK_EXCLUSIVE)) goto loop; error = VOP_FSYNC(vp, cred, waitfor, p); if (error) |