summaryrefslogtreecommitdiffstats
path: root/sys/vm
diff options
context:
space:
mode:
authordyson <dyson@FreeBSD.org>1996-06-12 04:03:21 +0000
committerdyson <dyson@FreeBSD.org>1996-06-12 04:03:21 +0000
commitcc48a948425542bec3fdfe9df5be738cd859c15b (patch)
tree750ec9c57a27e152593ce1f044119c601b742574 /sys/vm
parente716f5104abf173f4bd7cbcf865cb6856eaf2580 (diff)
downloadFreeBSD-src-cc48a948425542bec3fdfe9df5be738cd859c15b.zip
FreeBSD-src-cc48a948425542bec3fdfe9df5be738cd859c15b.tar.gz
Fix some serious errors in vm_map_simplify_entries.
Diffstat (limited to 'sys/vm')
-rw-r--r--sys/vm/vm_map.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/sys/vm/vm_map.c b/sys/vm/vm_map.c
index ad04e2c..3bd0053 100644
--- a/sys/vm/vm_map.c
+++ b/sys/vm/vm_map.c
@@ -61,7 +61,7 @@
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*
- * $Id: vm_map.c,v 1.48 1996/05/29 05:12:21 dyson Exp $
+ * $Id: vm_map.c,v 1.49 1996/05/31 00:37:58 dyson Exp $
*/
/*
@@ -861,8 +861,9 @@ vm_map_simplify_entry(map, entry)
prevsize = prev->end - prev->start;
if ( (prev->end == entry->start) &&
(prev->object.vm_object == entry->object.vm_object) &&
- (!prev->object.vm_object || (prev->object.vm_object->behavior == entry->object.vm_object->behavior)) &&
- (prev->offset + prevsize == entry->offset) &&
+ (prev->object.vm_object || (prev->object.vm_object->behavior == entry->object.vm_object->behavior)) &&
+ (!prev->object.vm_object ||
+ (prev->offset + prevsize == entry->offset)) &&
(prev->needs_copy == entry->needs_copy) &&
(prev->copy_on_write == entry->copy_on_write) &&
(prev->protection == entry->protection) &&
@@ -890,8 +891,9 @@ vm_map_simplify_entry(map, entry)
esize = entry->end - entry->start;
if ((entry->end == next->start) &&
(next->object.vm_object == entry->object.vm_object) &&
- (!next->object.vm_object || (next->object.vm_object->behavior == entry->object.vm_object->behavior)) &&
- (entry->offset + esize == next->offset) &&
+ (next->object.vm_object || (next->object.vm_object->behavior == entry->object.vm_object->behavior)) &&
+ (!entry->object.vm_object ||
+ (entry->offset + esize == next->offset)) &&
(next->needs_copy == entry->needs_copy) &&
(next->copy_on_write == entry->copy_on_write) &&
(next->protection == entry->protection) &&
@@ -912,7 +914,6 @@ vm_map_simplify_entry(map, entry)
}
}
}
-
/*
* vm_map_clip_start: [ internal use only ]
*
OpenPOWER on IntegriCloud