diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-06-27 04:49:49 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-06-27 04:49:49 +0000 |
commit | b61e35faf27549918f1230cc2ce84736dd843937 (patch) | |
tree | 30c8c327ade6c3964b6174515a7d4ac49fb5d480 /sys/kern/vfs_vnops.c | |
parent | edcf27d64733b7c58c5e752241e2f00119bdc747 (diff) |
remove old vm
Diffstat (limited to 'sys/kern/vfs_vnops.c')
-rw-r--r-- | sys/kern/vfs_vnops.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/sys/kern/vfs_vnops.c b/sys/kern/vfs_vnops.c index 15d137c8f6f..27a7a37a1c6 100644 --- a/sys/kern/vfs_vnops.c +++ b/sys/kern/vfs_vnops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_vnops.c,v 1.31 2001/06/22 14:14:11 deraadt Exp $ */ +/* $OpenBSD: vfs_vnops.c,v 1.32 2001/06/27 04:49:48 art Exp $ */ /* $NetBSD: vfs_vnops.c,v 1.20 1996/02/04 02:18:41 christos Exp $ */ /* @@ -57,9 +57,7 @@ #include <vm/vm.h> -#if defined(UVM) #include <uvm/uvm_extern.h> -#endif int vn_read __P((struct file *fp, off_t *off, struct uio *uio, struct ucred *cred)); @@ -205,13 +203,9 @@ vn_writechk(vp) * the vnode, try to free it up once. If * we fail, we can't allow writing. */ -#if defined(UVM) if ((vp->v_flag & VTEXT) && !uvm_vnp_uncache(vp)) return (ETXTBSY); -#else - if ((vp->v_flag & VTEXT) && !vnode_pager_uncache(vp)) - return (ETXTBSY); -#endif + return (0); } |