From 26b8ec940ab2fa67fbd6a540475975a33d306550 Mon Sep 17 00:00:00 2001 From: natano Date: Sun, 19 Jun 2016 11:54:33 +0000 Subject: 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 --- sys/tmpfs/tmpfs_subr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/tmpfs/tmpfs_subr.c') 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. */ -- cgit v1.2.3-59-g8ed1b