Lines Matching refs:copy_object
647 vm_object_t copy_object;
1656 while ((copy_object = first_object->copy) != VM_OBJECT_NULL && (m != VM_PAGE_NULL)) {
1661 dbgTrace(0xBEEF0017, (unsigned int) copy_object, (unsigned int) fault_type); /* (TEST/DEBUG) */
1680 * Try to get the lock on the copy_object.
1682 if (!vm_object_lock_try(copy_object)) {
1699 vm_object_reference_locked(copy_object);
1704 copy_offset = first_offset - copy_object->shadow_offset;
1706 if (copy_object->size <= copy_offset)
1711 else if ((copy_m = vm_page_lookup(copy_object, copy_offset)) != VM_PAGE_NULL) {
1725 vm_object_reference_locked(copy_object);
1726 vm_object_unlock(copy_object);
1730 vm_object_lock(copy_object);
1731 assert(copy_object->ref_count > 0);
1732 VM_OBJ_RES_DECR(copy_object);
1733 vm_object_lock_assert_exclusive(copy_object);
1734 copy_object->ref_count--;
1735 assert(copy_object->ref_count > 0);
1736 copy_m = vm_page_lookup(copy_object, copy_offset);
1746 vm_object_unlock(copy_object);
1748 vm_object_deallocate(copy_object);
1752 vm_object_unlock(copy_object);
1753 vm_object_deallocate(copy_object);
1760 else if (!PAGED_OUT(copy_object, copy_offset)) {
1781 VM_OBJ_RES_DECR(copy_object);
1782 vm_object_lock_assert_exclusive(copy_object);
1783 copy_object->ref_count--;
1784 assert(copy_object->ref_count > 0);
1786 vm_object_unlock(copy_object);
1797 copy_m = vm_page_alloc(copy_object, copy_offset);
1802 VM_OBJ_RES_DECR(copy_object);
1803 vm_object_lock_assert_exclusive(copy_object);
1804 copy_object->ref_count--;
1805 assert(copy_object->ref_count > 0);
1807 vm_object_unlock(copy_object);
1832 if ((!copy_object->pager_created)
1834 || vm_external_state_get(copy_object->existence_map, copy_offset) == VM_EXTERNAL_STATE_ABSENT
1859 * copy_object itself.
1872 * copy_object's lock, we
1876 if ((copy_object->shadow != object) || (copy_object->ref_count == 1)) {
1877 vm_object_unlock(copy_object);
1878 vm_object_deallocate(copy_object);
1906 * The reference count on copy_object must be
1910 * copy_object).
1912 vm_object_lock_assert_exclusive(copy_object);
1913 copy_object->ref_count--;
1914 assert(copy_object->ref_count > 0);
1916 VM_OBJ_RES_DECR(copy_object);
1917 vm_object_unlock(copy_object);