Lines Matching refs:copy_object
689 vm_object_t copy_object = VM_OBJECT_NULL;
730 while ((copy_object = object->copy) != VM_OBJECT_NULL) {
737 if (vm_object_lock_try(copy_object)) {
748 vm_object_reference_locked(copy_object);
759 if ((copy_object != VM_OBJECT_NULL && update_cow) || (flags & MEMORY_OBJECT_DATA_SYNC)) {
769 if (copy_object != VM_OBJECT_NULL) {
773 copy_offset = (offset >= copy_object->shadow_offset) ?
774 (vm_map_offset_t)(offset - copy_object->shadow_offset) :
777 if (copy_offset > copy_object->size)
778 copy_offset = copy_object->size;
783 if (offset >= copy_object->shadow_offset) {
785 } else if (size >= copy_object->shadow_offset - offset) {
786 copy_size = size - (copy_object->shadow_offset - offset);
791 if (copy_offset + copy_size > copy_object->size) {
792 if (copy_object->size >= copy_offset) {
793 copy_size = copy_object->size - copy_offset;
801 copy_object = object;
813 vm_object_paging_begin(copy_object);
820 switch (vm_fault_page(copy_object, i,
835 vm_object_lock(copy_object);
836 vm_object_paging_begin(copy_object);
847 vm_object_lock(copy_object);
848 vm_object_paging_begin(copy_object);
852 vm_object_lock(copy_object);
853 vm_object_paging_begin(copy_object);
858 vm_object_lock(copy_object);
859 vm_object_paging_begin(copy_object);
864 vm_object_lock(copy_object);
865 vm_object_paging_begin(copy_object);
868 if (object != copy_object)
869 vm_object_deallocate(copy_object);
875 vm_object_paging_end(copy_object);
878 if (copy_object != VM_OBJECT_NULL && copy_object != object) {
879 vm_object_unlock(copy_object);
880 vm_object_deallocate(copy_object);
885 if (copy_object != VM_OBJECT_NULL && copy_object != object) {
887 copy_object->shadow_severed = TRUE;
888 copy_object->shadowed = FALSE;
889 copy_object->shadow = NULL;
895 vm_object_unlock(copy_object);
896 vm_object_deallocate(copy_object);