diff options
author | natano <natano@cvs.openbsd.org> | 2016-03-19 12:04:17 +0000 |
---|---|---|
committer | natano <natano@cvs.openbsd.org> | 2016-03-19 12:04:17 +0000 |
commit | a9bad0de99cbc0922b684917f300008ad4b7f821 (patch) | |
tree | 9bbf0a65b8ad489ea32bb54265c084bd2efd6f50 /share/man | |
parent | d16c6aa7a075ad00ce2bccb0a5b52b930477d6ac (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 'share/man')
-rw-r--r-- | share/man/man9/VOP_LOOKUP.9 | 9 | ||||
-rw-r--r-- | share/man/man9/vinvalbuf.9 | 6 |
2 files changed, 6 insertions, 9 deletions
diff --git a/share/man/man9/VOP_LOOKUP.9 b/share/man/man9/VOP_LOOKUP.9 index 99cd98a54ca..4085c50cec7 100644 --- a/share/man/man9/VOP_LOOKUP.9 +++ b/share/man/man9/VOP_LOOKUP.9 @@ -1,4 +1,4 @@ -.\" $OpenBSD: VOP_LOOKUP.9,v 1.32 2015/12/02 11:03:40 schwarze Exp $ +.\" $OpenBSD: VOP_LOOKUP.9,v 1.33 2016/03/19 12:04:15 natano Exp $ .\" .\" Copyright (c) 2003 Ted Unangst .\" All rights reserved. @@ -23,7 +23,7 @@ .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" -.Dd $Mdocdate: December 2 2015 $ +.Dd $Mdocdate: March 19 2016 $ .Dt VOP_LOOKUP 9 .Os .Sh NAME @@ -283,7 +283,6 @@ .Ft int .Fo VOP_UNLOCK .Fa "struct vnode *vp" -.Fa "int flags" .Fa "struct proc *p" .Fc .Ft int @@ -564,7 +563,7 @@ returned. .Pp .It Fn VOP_ISLOCKED vp .It Fn VOP_LOCK vp flags p -.It Fn VOP_UNLOCK vp flags p +.It Fn VOP_UNLOCK vp p .Fn VOP_LOCK is used internally by .Xr vn_lock 9 @@ -572,8 +571,6 @@ to lock a vnode. It should not be used by other file system code. .Fn VOP_UNLOCK unlocks a vnode. -.Fa flags -should be zero in most cases. .Fn VOP_ISLOCKED returns 1 if .Fa vp diff --git a/share/man/man9/vinvalbuf.9 b/share/man/man9/vinvalbuf.9 index 16ba6e4ae2b..ef7afdcc196 100644 --- a/share/man/man9/vinvalbuf.9 +++ b/share/man/man9/vinvalbuf.9 @@ -1,4 +1,4 @@ -.\" $OpenBSD: vinvalbuf.9,v 1.9 2013/07/17 20:21:56 schwarze Exp $ +.\" $OpenBSD: vinvalbuf.9,v 1.10 2016/03/19 12:04:15 natano Exp $ .\" .\" Copyright (C) 2001 Chad David <davidc@acns.ab.ca>. All rights reserved. .\" @@ -27,7 +27,7 @@ .\" .\" $FreeBSD: src/share/man/man9/vinvalbuf.9,v 1.6 2001/10/06 11:19:41 sheldonh Exp $ .\" -.Dd $Mdocdate: July 17 2013 $ +.Dd $Mdocdate: March 19 2016 $ .Dt VINVALBUF 9 .Os .Sh NAME @@ -87,7 +87,7 @@ A value of 0 is returned on success. .Bd -literal -offset indent vn_lock(devvp, LK_EXCLUSIVE | LK_RETRY, p); error = vinvalbuf(devvp, V_SAVE, cred, p, 0, 0); -VOP_UNLOCK(devvp, 0, p); +VOP_UNLOCK(devvp, p); if (error) return (error); .Ed |