From 9a4bf98e669e1350f696640e67c6567507e25455 Mon Sep 17 00:00:00 2001 From: David Greenman Date: Sat, 11 Mar 1995 22:23:14 +0000 Subject: [PATCH] Removed gratuitous and *extremely* evil setting of OBJ_INTERNAL. This caused a cascade of problems including kernel memory corruption, file corruption, system hangs, and panics. --- sys/ufs/ufs/ufs_vnops.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sys/ufs/ufs/ufs_vnops.c b/sys/ufs/ufs/ufs_vnops.c index efcb7fb10d9a..6b48c7ee035c 100644 --- a/sys/ufs/ufs/ufs_vnops.c +++ b/sys/ufs/ufs/ufs_vnops.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)ufs_vnops.c 8.10 (Berkeley) 4/1/94 - * $Id: ufs_vnops.c,v 1.14 1995/01/09 16:05:27 davidg Exp $ + * $Id: ufs_vnops.c,v 1.15 1995/02/14 06:12:26 phk Exp $ */ #include @@ -650,8 +650,6 @@ ufs_remove(ap) if ((error = ufs_dirremove(dvp, ap->a_cnp)) == 0) { ip->i_nlink--; ip->i_flag |= IN_CHANGE; - if( (ip->i_nlink == 0) && vp->v_vmdata) - ((vm_object_t)vp->v_vmdata)->flags |= OBJ_INTERNAL; } out: if (dvp == vp)