mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-13 10:02:38 +00:00
This patch eliminates a pointless test from appearing twice
in vm_map_simplify_entry. Basically, once you've verified that the objects in the adjacent vm_map_entry's are the same, either NULL or the same vm_object, there's no point in checking that the objects have the same behavior. Obtained from: Alan Cox <alc@cs.rice.edu>
This commit is contained in:
parent
06fd697d15
commit
b406c0f55c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=43493
@ -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.144 1999/01/28 00:57:57 dillon Exp $
|
||||
* $Id: vm_map.c,v 1.145 1999/01/31 14:09:25 julian Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -908,8 +908,6 @@ 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->object.vm_object ||
|
||||
(prev->offset + prevsize == entry->offset)) &&
|
||||
(prev->eflags == entry->eflags) &&
|
||||
@ -935,8 +933,6 @@ 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->object.vm_object ||
|
||||
(entry->offset + esize == next->offset)) &&
|
||||
(next->eflags == entry->eflags) &&
|
||||
|
Loading…
Reference in New Issue
Block a user