Simplify the removal of a shadow object in vm_object_collapse().

This commit is contained in:
Alan Cox 2003-05-02 03:00:21 +00:00
parent b69195b182
commit 4f7c7f6e23

View File

@ -1563,12 +1563,12 @@ vm_object_collapse(vm_object_t object)
* backing_object to within object.
*/
TAILQ_REMOVE(
&object->backing_object->shadow_head,
&backing_object->shadow_head,
object,
shadow_list
);
object->backing_object->shadow_count--;
object->backing_object->generation++;
backing_object->shadow_count--;
backing_object->generation++;
if (backing_object->backing_object) {
TAILQ_REMOVE(
&backing_object->backing_object->shadow_head,