summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormycroft <mycroft@NetBSD.org>1993-09-23 22:20:29 +0000
committermycroft <mycroft@NetBSD.org>1993-09-23 22:20:29 +0000
commit00e8bf23cd303df03e050d0a82aeda4fff3ada9c (patch)
treef32809a301560b3a2cf7ba744f7d1a9c8db3e9c3
parentc179e54a040ec79fe8376dddce4193d56fe268c7 (diff)
Add `#ifdef DIAGNOSTIC' around check for dirty pages in persistent objects.
-rw-r--r--sys/vm/vm_object.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/vm/vm_object.c b/sys/vm/vm_object.c
index 8b18fd884e7..2efcc65a508 100644
--- a/sys/vm/vm_object.c
+++ b/sys/vm/vm_object.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)vm_object.c 7.4 (Berkeley) 5/7/91
- * $Id: vm_object.c,v 1.8 1993/09/13 14:10:37 brezak Exp $
+ * $Id: vm_object.c,v 1.9 1993/09/23 22:20:29 mycroft Exp $
*
*
* Copyright (c) 1987, 1990 Carnegie-Mellon University.
@@ -250,6 +250,7 @@ void vm_object_deallocate(object)
*/
if (object->can_persist) {
+#ifdef DIAGNOSTIC
register vm_page_t p;
/*
@@ -270,6 +271,7 @@ void vm_object_deallocate(object)
p = (vm_page_t) queue_next(&p->listq);
}
+#endif /* DIAGNOSTIC */
queue_enter(&vm_object_cached_list, object,
vm_object_t, cached_list);