diff --git a/sys/kern/vfs_vnops.c b/sys/kern/vfs_vnops.c index 990c4fb8710a..45889f2c5a29 100644 --- a/sys/kern/vfs_vnops.c +++ b/sys/kern/vfs_vnops.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)vfs_vnops.c 8.2 (Berkeley) 1/21/94 - * $Id: vfs_vnops.c,v 1.7 1995/01/09 16:04:55 davidg Exp $ + * $Id: vfs_vnops.c,v 1.8 1995/02/14 06:31:13 phk Exp $ */ #include @@ -217,7 +217,7 @@ vn_writechk(vp) * the vnode, try to free it up once. If * we fail, we can't allow writing. */ - if ((vp->v_flag & VTEXT) && !vnode_pager_uncache(vp)) + if (vp->v_flag & VTEXT) return (ETXTBSY); return (0); } diff --git a/sys/nfs/nfs_serv.c b/sys/nfs/nfs_serv.c index 2bf0a2893eeb..f3eba1c1c809 100644 --- a/sys/nfs/nfs_serv.c +++ b/sys/nfs/nfs_serv.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)nfs_serv.c 8.3 (Berkeley) 1/12/94 - * $Id: nfs_serv.c,v 1.10 1995/02/15 03:38:12 davidg Exp $ + * $Id: nfs_serv.c,v 1.11 1995/03/17 07:45:19 davidg Exp $ */ /* @@ -1978,10 +1978,9 @@ nfsrv_access(vp, flags, cred, rdonly, p) } /* * If there's shared text associated with - * the inode, try to free it up once. If - * we fail, we can't allow writing. + * the inode, we can't allow writing. */ - if ((vp->v_flag & VTEXT) && !vnode_pager_uncache(vp)) + if (vp->v_flag & VTEXT) return (ETXTBSY); } error = VOP_GETATTR(vp, &vattr, cred, p); diff --git a/sys/nfsserver/nfs_serv.c b/sys/nfsserver/nfs_serv.c index 2bf0a2893eeb..f3eba1c1c809 100644 --- a/sys/nfsserver/nfs_serv.c +++ b/sys/nfsserver/nfs_serv.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)nfs_serv.c 8.3 (Berkeley) 1/12/94 - * $Id: nfs_serv.c,v 1.10 1995/02/15 03:38:12 davidg Exp $ + * $Id: nfs_serv.c,v 1.11 1995/03/17 07:45:19 davidg Exp $ */ /* @@ -1978,10 +1978,9 @@ nfsrv_access(vp, flags, cred, rdonly, p) } /* * If there's shared text associated with - * the inode, try to free it up once. If - * we fail, we can't allow writing. + * the inode, we can't allow writing. */ - if ((vp->v_flag & VTEXT) && !vnode_pager_uncache(vp)) + if (vp->v_flag & VTEXT) return (ETXTBSY); } error = VOP_GETATTR(vp, &vattr, cred, p);