Lines Matching refs:first_object
144 vm_object_t first_object; member
271 if (fs->object != fs->first_object) { in vm_fault_deallocate()
272 VM_OBJECT_WLOCK(fs->first_object); in vm_fault_deallocate()
274 VM_OBJECT_WUNLOCK(fs->first_object); in vm_fault_deallocate()
275 vm_object_pip_wakeup(fs->first_object); in vm_fault_deallocate()
277 vm_object_deallocate(fs->first_object); in vm_fault_deallocate()
356 m = vm_page_lookup_unlocked(fs->first_object, fs->first_pindex); in vm_fault_soft_fast()
359 VM_OBJECT_WLOCK(fs->first_object); in vm_fault_soft_fast()
365 VM_OBJECT_RLOCK(fs->first_object); in vm_fault_soft_fast()
372 if (m->object != fs->first_object || m->pindex != fs->first_pindex) in vm_fault_soft_fast()
375 vm_object_busy(fs->first_object); in vm_fault_soft_fast()
400 if ((fs->first_object->flags & OBJ_UNMANAGED) == 0) in vm_fault_soft_fast()
423 VM_OBJECT_RUNLOCK(fs->first_object); in vm_fault_soft_fast()
425 vm_object_unbusy(fs->first_object); in vm_fault_soft_fast()
430 vm_object_unbusy(fs->first_object); in vm_fault_soft_fast()
432 if (!VM_OBJECT_TRYUPGRADE(fs->first_object)) { in vm_fault_soft_fast()
433 VM_OBJECT_RUNLOCK(fs->first_object); in vm_fault_soft_fast()
434 VM_OBJECT_WLOCK(fs->first_object); in vm_fault_soft_fast()
443 VM_OBJECT_ASSERT_WLOCKED(fs->first_object); in vm_fault_restore_map_lock()
444 MPASS(blockcount_read(&fs->first_object->paging_in_progress) > 0); in vm_fault_restore_map_lock()
447 VM_OBJECT_WUNLOCK(fs->first_object); in vm_fault_restore_map_lock()
449 VM_OBJECT_WLOCK(fs->first_object); in vm_fault_restore_map_lock()
494 MPASS(fs->object == fs->first_object); in vm_fault_populate()
495 VM_OBJECT_ASSERT_WLOCKED(fs->first_object); in vm_fault_populate()
496 MPASS(blockcount_read(&fs->first_object->paging_in_progress) > 0); in vm_fault_populate()
497 MPASS(fs->first_object->backing_object == NULL); in vm_fault_populate()
515 rv = vm_pager_populate(fs->first_object, fs->first_pindex, in vm_fault_populate()
519 VM_OBJECT_ASSERT_WLOCKED(fs->first_object); in vm_fault_populate()
537 MPASS(pager_last < fs->first_object->size); in vm_fault_populate()
543 vm_fault_populate_cleanup(fs->first_object, pager_first, in vm_fault_populate()
546 m = vm_page_lookup(fs->first_object, pager_first); in vm_fault_populate()
562 m = vm_page_lookup(fs->first_object, pager_first); in vm_fault_populate()
564 VM_OBJECT_WUNLOCK(fs->first_object); in vm_fault_populate()
578 VM_OBJECT_WLOCK(fs->first_object); in vm_fault_populate()
604 vm_fault_populate_cleanup(fs->first_object, pager_first, in vm_fault_populate()
610 vm_fault_populate_cleanup(fs->first_object, map_last + 1, in vm_fault_populate()
614 for (pidx = pager_first, m = vm_page_lookup(fs->first_object, pidx); in vm_fault_populate()
630 VM_OBJECT_WUNLOCK(fs->first_object); in vm_fault_populate()
653 VM_OBJECT_WLOCK(fs->first_object); in vm_fault_populate()
776 if (fs->object == fs->first_object) in vm_fault_object_ensure_wlocked()
902 VM_PROT_FAULT_LOOKUP, &fs->entry, &fs->first_object, in vm_fault_lookup()
969 if (retry_object != fs->first_object || in vm_fault_relookup()
998 KASSERT(fs->object != fs->first_object, in vm_fault_cow()
1022 (is_first_object_locked = VM_OBJECT_TRYWLOCK(fs->first_object)) && in vm_fault_cow()
1023 fs->object == fs->first_object->backing_object && in vm_fault_cow()
1031 vm_page_replace(fs->m, fs->first_object, fs->first_pindex, in vm_fault_cow()
1038 vm_reserv_rename(fs->m, fs->first_object, fs->object, in vm_fault_cow()
1039 OFF_TO_IDX(fs->first_object->backing_object_offset)); in vm_fault_cow()
1042 VM_OBJECT_WUNLOCK(fs->first_object); in vm_fault_cow()
1048 VM_OBJECT_WUNLOCK(fs->first_object); in vm_fault_cow()
1083 if ((fs->first_object->flags & OBJ_ONEMAPPING) == 0) in vm_fault_cow()
1092 fs->object = fs->first_object; in vm_fault_cow()
1104 if (fs->object == fs->first_object || !fs->can_read_lock) in vm_fault_next()
1119 if (fs->object == fs->first_object) { in vm_fault_next()
1145 if (fs->object != fs->first_object) in vm_fault_next()
1162 if (fs->object != fs->first_object) { in vm_fault_zerofill()
1164 fs->object = fs->first_object; in vm_fault_zerofill()
1237 if (fs->object == fs->first_object && in vm_fault_allocate()
1238 (fs->first_object->flags & OBJ_POPULATE) != 0 && in vm_fault_allocate()
1239 fs->first_object->shadow_count == 0) { in vm_fault_allocate()
1425 if (fs->object != fs->first_object) { in vm_fault_busy_sleep()
1427 vm_object_pip_wakeup(fs->first_object); in vm_fault_busy_sleep()
1435 vm_object_deallocate(fs->first_object); in vm_fault_busy_sleep()
1452 if (fs->object == fs->first_object || !fs->can_read_lock) in vm_fault_object()
1498 fs->object == fs->first_object)) { in vm_fault_object()
1588 VM_OBJECT_ASSERT_UNLOCKED(fs.first_object); in vm_fault()
1591 VM_OBJECT_ASSERT_WLOCKED(fs.first_object); in vm_fault()
1593 VM_OBJECT_WLOCK(fs.first_object); in vm_fault()
1605 vm_object_reference_locked(fs.first_object); in vm_fault()
1606 vm_object_pip_add(fs.first_object, 1); in vm_fault()
1613 fs.object = fs.first_object; in vm_fault()
1674 if (fs.first_object == fs.object) in vm_fault()
1699 if (fs.object != fs.first_object) { in vm_fault()
1826 vm_object_t first_object; in vm_fault_dontneed() local
1833 first_object = fs->first_object; in vm_fault_dontneed()
1835 if ((first_object->flags & (OBJ_FICTITIOUS | OBJ_UNMANAGED)) == 0) { in vm_fault_dontneed()
1836 VM_OBJECT_RLOCK(first_object); in vm_fault_dontneed()
1850 m_next = vm_page_find_least(first_object, pstart); in vm_fault_dontneed()
1876 VM_OBJECT_RUNLOCK(first_object); in vm_fault_dontneed()