summaryrefslogtreecommitdiff
path: root/sys/tmpfs
diff options
context:
space:
mode:
authornatano <natano@cvs.openbsd.org>2016-03-19 12:04:17 +0000
committernatano <natano@cvs.openbsd.org>2016-03-19 12:04:17 +0000
commita9bad0de99cbc0922b684917f300008ad4b7f821 (patch)
tree9bbf0a65b8ad489ea32bb54265c084bd2efd6f50 /sys/tmpfs
parentd16c6aa7a075ad00ce2bccb0a5b52b930477d6ac (diff)
Remove the unused flags argument from VOP_UNLOCK().
torture tested on amd64, i386 and macppc ok beck mpi stefan "the change looks right" deraadt
Diffstat (limited to 'sys/tmpfs')
-rw-r--r--sys/tmpfs/tmpfs_vnops.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/sys/tmpfs/tmpfs_vnops.c b/sys/tmpfs/tmpfs_vnops.c
index 404c8e4554b..f876855e25c 100644
--- a/sys/tmpfs/tmpfs_vnops.c
+++ b/sys/tmpfs/tmpfs_vnops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tmpfs_vnops.c,v 1.24 2016/02/06 16:10:23 stefan Exp $ */
+/* $OpenBSD: tmpfs_vnops.c,v 1.25 2016/03/19 12:04:16 natano Exp $ */
/* $NetBSD: tmpfs_vnops.c,v 1.100 2012/11/05 17:27:39 dholland Exp $ */
/*
@@ -182,7 +182,7 @@ tmpfs_lookup(void *v)
* and thus prevents parent from disappearing.
*/
rw_enter_write(&pnode->tn_nlock);
- VOP_UNLOCK(dvp, 0, curproc);
+ VOP_UNLOCK(dvp, curproc);
/*
* Get a vnode of the '..' entry and re-acquire the lock.
@@ -295,7 +295,7 @@ out:
if ((error == 0 || error == EJUSTRETURN) && /* (1) */
*vpp != dvp && /* (2) */
(!lockparent || !lastcn)) { /* (3) */
- VOP_UNLOCK(dvp, 0, curproc);
+ VOP_UNLOCK(dvp, curproc);
cnp->cn_flags |= PDIRUNLOCK;
} else
KASSERT(VOP_ISLOCKED(dvp));
@@ -829,7 +829,7 @@ tmpfs_link(void *v)
error = 0;
out:
pool_put(&namei_pool, cnp->cn_pnbuf);
- VOP_UNLOCK(vp, 0, curproc);
+ VOP_UNLOCK(vp, curproc);
vput(dvp);
return error;
}
@@ -1041,7 +1041,7 @@ tmpfs_inactive(void *v)
if (vp->v_type == VREG && tmpfs_uio_cached(node))
tmpfs_uio_uncache(node);
- VOP_UNLOCK(vp, 0, curproc);
+ VOP_UNLOCK(vp, curproc);
/*
* If we are done with the node, reclaim it so that it can be reused
@@ -1198,7 +1198,7 @@ tmpfs_unlock(void *v)
struct vop_unlock_args *ap = v;
tmpfs_node_t *tnp = VP_TO_TMPFS_NODE(ap->a_vp);
- return lockmgr(&tnp->tn_vlock, ap->a_flags | LK_RELEASE, NULL);
+ return lockmgr(&tnp->tn_vlock, LK_RELEASE, NULL);
}
int
@@ -1348,9 +1348,9 @@ tmpfs_rename(void *v)
* the caller does reject rename("x/.", "y"). Go figure.)
*/
- VOP_UNLOCK(tdvp, 0, curproc);
+ VOP_UNLOCK(tdvp, curproc);
if ((tvp != NULL) && (tvp != tdvp))
- VOP_UNLOCK(tvp, 0, curproc);
+ VOP_UNLOCK(tvp, curproc);
vrele(fvp);
if (tvp != NULL)
@@ -1776,7 +1776,7 @@ fail3: if (tvp != NULL) {
}
fail2: vput(fvp);
-fail1: VOP_UNLOCK(dvp, 0, curproc);
+fail1: VOP_UNLOCK(dvp, curproc);
fail0: return error;
}
@@ -1879,10 +1879,10 @@ tmpfs_rename_exit(struct tmpfs_mount *tmpfs,
else
vrele(tvp);
}
- VOP_UNLOCK(tdvp, 0, curproc);
+ VOP_UNLOCK(tdvp, curproc);
vput(fvp);
if (fdvp != tdvp)
- VOP_UNLOCK(fdvp, 0, curproc);
+ VOP_UNLOCK(fdvp, curproc);
#if 0 /* XXX */
if (fdvp != tdvp)
@@ -1906,7 +1906,7 @@ tmpfs_rename_lock_directory(struct vnode *vp, struct tmpfs_node *node)
vn_lock(vp, LK_EXCLUSIVE | LK_RETRY, curproc);
if (node->tn_spec.tn_dir.tn_parent == NULL) {
- VOP_UNLOCK(vp, 0, curproc);
+ VOP_UNLOCK(vp, curproc);
return ENOENT;
}
@@ -1976,7 +1976,7 @@ tmpfs_rename_genealogy(struct tmpfs_node *fdnode, struct tmpfs_node *tdnode,
node = parent;
}
- VOP_UNLOCK(tdnode->tn_vnode, 0, curproc);
+ VOP_UNLOCK(tdnode->tn_vnode, curproc);
return 0;
}
@@ -2164,7 +2164,7 @@ fail4: if (b_vp != NULL) {
}
fail3: KASSERT(VOP_ISLOCKED(b_dvp) == LK_EXCLUSIVE);
- VOP_UNLOCK(b_dvp, 0, curproc);
+ VOP_UNLOCK(b_dvp, curproc);
fail2: if (a_vp != NULL) {
KASSERT(VOP_ISLOCKED(a_vp) == LK_EXCLUSIVE);
@@ -2172,7 +2172,7 @@ fail2: if (a_vp != NULL) {
}
fail1: KASSERT(VOP_ISLOCKED(a_dvp) == LK_EXCLUSIVE);
- VOP_UNLOCK(a_dvp, 0, curproc);
+ VOP_UNLOCK(a_dvp, curproc);
fail0: /* KASSERT(VOP_ISLOCKED(a_dvp) != LK_EXCLUSIVE); */
/* KASSERT(VOP_ISLOCKED(b_dvp) != LK_EXCLUSIVE); */