From 636eb1092aad7ee44a83ea0cb1f71bba59f1bc3b Mon Sep 17 00:00:00 2001 From: art Date: Wed, 27 Jun 2001 04:49:40 +0000 Subject: remove old vm --- sys/kern/vfs_subr.c | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) (limited to 'sys/kern/vfs_subr.c') diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index 7d22512d8cf..09dbc3cfd0b 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_subr.c,v 1.62 2001/06/22 14:14:10 deraadt Exp $ */ +/* $OpenBSD: vfs_subr.c,v 1.63 2001/06/27 04:49:48 art Exp $ */ /* $NetBSD: vfs_subr.c,v 1.53 1996/04/22 01:39:13 christos Exp $ */ /* @@ -69,10 +69,7 @@ #include -#if defined(UVM) #include -#endif - enum vtype iftovt_tab[16] = { VNON, VFIFO, VCHR, VNON, VDIR, VNON, VBLK, VNON, @@ -463,9 +460,7 @@ getnewvnode(tag, mp, vops, vpp) *vpp = vp; vp->v_usecount = 1; vp->v_data = 0; -#ifdef UVM simple_lock_init(&vp->v_uvm.u_obj.vmobjlock); -#endif return (0); } @@ -986,12 +981,10 @@ vclean(vp, flags, p) */ VOP_LOCK(vp, LK_DRAIN | LK_INTERLOCK, p); -#ifdef UVM /* * clean out any VM data associated with the vnode. */ uvm_vnp_terminate(vp); -#endif /* * Clean out any buffers associated with the vnode. */ @@ -1753,14 +1746,6 @@ vfs_shutdown() printf("syncing disks... "); if (panicstr == 0) { - /* Release inodes held by texts before update. */ -#if !defined(UVM) - vnode_pager_umount(NULL); -#endif -#ifdef notdef - vnshutdown(); -#endif - /* Sync before unmount, in case we hang on something. */ sys_sync(&proc0, (void *)0, (register_t *)0); -- cgit v1.2.3-59-g8ed1b