diff options
author | Visa Hankala <visa@cvs.openbsd.org> | 2018-05-02 02:24:57 +0000 |
---|---|---|
committer | Visa Hankala <visa@cvs.openbsd.org> | 2018-05-02 02:24:57 +0000 |
commit | 108f19d0ced75c574baf04aadc2461544271ab61 (patch) | |
tree | c74dd7b672cc03aff7b93052e639c38506a52563 /sys/uvm/uvm_vnode.c | |
parent | e04bdc4d8438d7c603ab1f98c7150e02c3c7e42c (diff) |
Remove proc from the parameters of vn_lock(). The parameter is
unnecessary because curproc always does the locking.
OK mpi@
Diffstat (limited to 'sys/uvm/uvm_vnode.c')
-rw-r--r-- | sys/uvm/uvm_vnode.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/uvm/uvm_vnode.c b/sys/uvm/uvm_vnode.c index c626b4082dc..8ccfd3980f9 100644 --- a/sys/uvm/uvm_vnode.c +++ b/sys/uvm/uvm_vnode.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_vnode.c,v 1.101 2018/04/28 03:13:05 visa Exp $ */ +/* $OpenBSD: uvm_vnode.c,v 1.102 2018/05/02 02:24:56 visa Exp $ */ /* $NetBSD: uvm_vnode.c,v 1.36 2000/11/24 20:34:01 chs Exp $ */ /* @@ -1185,7 +1185,7 @@ uvn_io(struct uvm_vnode *uvn, vm_page_t *pps, int npages, int flags, int rw) */ result = 0; if ((uvn->u_flags & UVM_VNODE_VNISLOCKED) == 0) - result = vn_lock(vn, LK_EXCLUSIVE | LK_RECURSEFAIL, curproc); + result = vn_lock(vn, LK_EXCLUSIVE | LK_RECURSEFAIL); if (result == 0) { /* NOTE: vnode now locked! */ @@ -1325,7 +1325,7 @@ uvm_vnp_uncache(struct vnode *vp) */ VOP_UNLOCK(vp); uvn_detach(&uvn->u_obj); - vn_lock(vp, LK_EXCLUSIVE | LK_RETRY, curproc); + vn_lock(vp, LK_EXCLUSIVE | LK_RETRY); return(TRUE); } |