Simplify the removal of a shadow object in vm_object_collapse().
This commit is contained in:
parent
b69195b182
commit
4f7c7f6e23
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user