summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_object.c
diff options
context:
space:
mode:
authordyson <dyson@FreeBSD.org>1997-06-22 03:00:24 +0000
committerdyson <dyson@FreeBSD.org>1997-06-22 03:00:24 +0000
commit8786565a8667416801e00e004b227ee27c2656c9 (patch)
treeb024e0ecb8b4cb1cda6670f0f4deba38f23f97ba /sys/vm/vm_object.c
parent9aa9d790d1364010763c386c6c004018a9fc1f68 (diff)
downloadFreeBSD-src-8786565a8667416801e00e004b227ee27c2656c9.zip
FreeBSD-src-8786565a8667416801e00e004b227ee27c2656c9.tar.gz
Remove a window during running down a file vnode. Also, the OBJ_DEAD
flag wasn't being respected during vref(), et. al. Note that this isn't the eventual fix for the locking problem. Fine grained SMP in the VM and VFS code will require (lots) more work.
Diffstat (limited to 'sys/vm/vm_object.c')
-rw-r--r--sys/vm/vm_object.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/vm/vm_object.c b/sys/vm/vm_object.c
index abc2ce8..63f3552 100644
--- a/sys/vm/vm_object.c
+++ b/sys/vm/vm_object.c
@@ -61,7 +61,7 @@
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*
- * $Id: vm_object.c,v 1.91 1997/04/26 11:46:25 peter Exp $
+ * $Id: vm_object.c,v 1.92 1997/05/29 02:57:22 peter Exp $
*/
/*
@@ -372,6 +372,9 @@ vm_object_terminate(object)
register vm_page_t p;
int s;
+ if (object->flags & OBJ_VFS_REF)
+ panic("vm_object_deallocate: freeing VFS_REF'ed object");
+
/*
* wait for the pageout daemon to be done with the object
*/
OpenPOWER on IntegriCloud