summaryrefslogtreecommitdiffstats
path: root/sys/tmpfs/tmpfs_subr.c
diff options
context:
space:
mode:
authornatano <natano@openbsd.org>2016-06-19 11:54:33 +0000
committernatano <natano@openbsd.org>2016-06-19 11:54:33 +0000
commit26b8ec940ab2fa67fbd6a540475975a33d306550 (patch)
tree4bc38369f07e2cfc6049ba8975ecac48a7e6367b /sys/tmpfs/tmpfs_subr.c
parentsync (diff)
downloadwireguard-openbsd-26b8ec940ab2fa67fbd6a540475975a33d306550.tar.xz
wireguard-openbsd-26b8ec940ab2fa67fbd6a540475975a33d306550.zip
Remove the lockmgr() API. It is only used by filesystems, where it is a
trivial change to use rrw locks instead. All it needs is LK_* defines for the RW_* flags. tested by naddy and sthen on package building infrastructure input and ok jmc mpi tedu
Diffstat (limited to 'sys/tmpfs/tmpfs_subr.c')
-rw-r--r--sys/tmpfs/tmpfs_subr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/tmpfs/tmpfs_subr.c b/sys/tmpfs/tmpfs_subr.c
index bcbad5ed2b6..9db2a35729e 100644
--- a/sys/tmpfs/tmpfs_subr.c
+++ b/sys/tmpfs/tmpfs_subr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tmpfs_subr.c,v 1.15 2016/02/06 16:10:23 stefan Exp $ */
+/* $OpenBSD: tmpfs_subr.c,v 1.16 2016/06/19 11:54:33 natano Exp $ */
/* $NetBSD: tmpfs_subr.c,v 1.79 2012/03/13 18:40:50 elad Exp $ */
/*
@@ -314,7 +314,7 @@ again:
return error;
}
- lockinit(&node->tn_vlock, PINOD, "tnode", 0, 0);
+ rrw_init(&node->tn_vlock, "tnode");
vp->v_type = node->tn_type;
/* Type-specific initialization. */