summaryrefslogtreecommitdiff
path: root/sys/compat/netbsd
diff options
context:
space:
mode:
authorThordur I. Bjornsson <thib@cvs.openbsd.org>2007-01-16 17:52:19 +0000
committerThordur I. Bjornsson <thib@cvs.openbsd.org>2007-01-16 17:52:19 +0000
commit2de0712790ae7c9f1ad5fbd4d16115b50d00b964 (patch)
tree9dd89d25cc512e0f21c86d0d63e7b0d60a9a5290 /sys/compat/netbsd
parent4bd808e5f53e0cc7725f8c6e49c7cdf716a77be4 (diff)
Retire VOP_LEASE(); It was a bit for NQNFS and has
effectively been a no-op for quite some time now, without promise for future usage. ok pedro@ Testing by krw@ (earlier diff) and Johan Mson Lindman (tybollt@solace.miun.se)
Diffstat (limited to 'sys/compat/netbsd')
-rw-r--r--sys/compat/netbsd/netbsd_misc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/compat/netbsd/netbsd_misc.c b/sys/compat/netbsd/netbsd_misc.c
index 627c5cb1d83..8bf0f9d0843 100644
--- a/sys/compat/netbsd/netbsd_misc.c
+++ b/sys/compat/netbsd/netbsd_misc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: netbsd_misc.c,v 1.14 2004/11/23 19:08:54 miod Exp $ */
+/* $OpenBSD: netbsd_misc.c,v 1.15 2007/01/16 17:52:18 thib Exp $ */
/*
* Copyright (c) 1982, 1986, 1989, 1991, 1993
@@ -98,7 +98,6 @@ netbsd_sys_lchmod(p, v, retval)
if ((error = namei(&nd)) != 0)
return (error);
vp = nd.ni_vp;
- VOP_LEASE(vp, p, p->p_ucred, LEASE_WRITE);
vn_lock(vp, LK_EXCLUSIVE | LK_RETRY, p);
if (vp->v_mount->mnt_flag & MNT_RDONLY)
error = EROFS;
@@ -148,7 +147,6 @@ netbsd_sys_lutimes(p, v, retval)
if ((error = namei(&nd)) != 0)
return (error);
vp = nd.ni_vp;
- VOP_LEASE(vp, p, p->p_ucred, LEASE_WRITE);
vn_lock(vp, LK_EXCLUSIVE | LK_RETRY, p);
if (vp->v_mount->mnt_flag & MNT_RDONLY)
error = EROFS;