Lines Matching defs:first_object
142 vm_object_t first_object;
269 if (fs->object != fs->first_object) {
270 VM_OBJECT_WLOCK(fs->first_object);
272 VM_OBJECT_WUNLOCK(fs->first_object);
273 vm_object_pip_wakeup(fs->first_object);
275 vm_object_deallocate(fs->first_object);
332 * Unlocks fs.first_object and fs.map on success.
354 m = vm_page_lookup_unlocked(fs->first_object, fs->first_pindex);
357 VM_OBJECT_WLOCK(fs->first_object);
363 VM_OBJECT_RLOCK(fs->first_object);
370 if (m->object != fs->first_object || m->pindex != fs->first_pindex)
373 vm_object_busy(fs->first_object);
396 if ((fs->first_object->flags & OBJ_UNMANAGED) == 0)
433 VM_OBJECT_RUNLOCK(fs->first_object);
435 vm_object_unbusy(fs->first_object);
440 vm_object_unbusy(fs->first_object);
442 if (!VM_OBJECT_TRYUPGRADE(fs->first_object)) {
443 VM_OBJECT_RUNLOCK(fs->first_object);
444 VM_OBJECT_WLOCK(fs->first_object);
453 VM_OBJECT_ASSERT_WLOCKED(fs->first_object);
454 MPASS(blockcount_read(&fs->first_object->paging_in_progress) > 0);
457 VM_OBJECT_WUNLOCK(fs->first_object);
459 VM_OBJECT_WLOCK(fs->first_object);
506 MPASS(fs->object == fs->first_object);
507 VM_OBJECT_ASSERT_WLOCKED(fs->first_object);
508 MPASS(blockcount_read(&fs->first_object->paging_in_progress) > 0);
509 MPASS(fs->first_object->backing_object == NULL);
527 rv = vm_pager_populate(fs->first_object, fs->first_pindex,
531 VM_OBJECT_ASSERT_WLOCKED(fs->first_object);
549 MPASS(pager_last < fs->first_object->size);
555 vm_fault_populate_cleanup(fs->first_object, pager_first,
558 m = vm_page_lookup(fs->first_object, pager_first);
574 m = vm_page_lookup(fs->first_object, pager_first);
576 VM_OBJECT_WUNLOCK(fs->first_object);
590 VM_OBJECT_WLOCK(fs->first_object);
616 vm_fault_populate_cleanup(fs->first_object, pager_first,
622 vm_fault_populate_cleanup(fs->first_object, map_last + 1,
626 for (pidx = pager_first, m = vm_page_lookup(fs->first_object, pidx);
643 VM_OBJECT_WUNLOCK(fs->first_object);
666 VM_OBJECT_WLOCK(fs->first_object);
789 if (fs->object == fs->first_object)
915 VM_PROT_FAULT_LOOKUP, &fs->entry, &fs->first_object,
982 if (retry_object != fs->first_object ||
1011 KASSERT(fs->object != fs->first_object,
1016 * into the first_object, where the backing object has no other
1035 (is_first_object_locked = VM_OBJECT_TRYWLOCK(fs->first_object)) &&
1036 fs->object == fs->first_object->backing_object &&
1040 * fs->first_object and left busy while fs->first_m is
1044 vm_page_replace(fs->m, fs->first_object, fs->first_pindex,
1051 vm_reserv_rename(fs->m, fs->first_object, fs->object,
1052 OFF_TO_IDX(fs->first_object->backing_object_offset));
1055 VM_OBJECT_WUNLOCK(fs->first_object);
1061 VM_OBJECT_WUNLOCK(fs->first_object);
1096 if ((fs->first_object->flags & OBJ_ONEMAPPING) == 0)
1105 fs->object = fs->first_object;
1117 if (fs->object == fs->first_object || !fs->can_read_lock)
1132 if (fs->object == fs->first_object) {
1158 if (fs->object != fs->first_object)
1175 if (fs->object != fs->first_object) {
1177 fs->object = fs->first_object;
1250 if (fs->object == fs->first_object &&
1251 (fs->first_object->flags & OBJ_POPULATE) != 0 &&
1252 fs->first_object->shadow_count == 0) {
1438 if (fs->object != fs->first_object) {
1440 vm_object_pip_wakeup(fs->first_object);
1448 vm_object_deallocate(fs->first_object);
1465 if (fs->object == fs->first_object || !fs->can_read_lock)
1511 fs->object == fs->first_object)) {
1601 VM_OBJECT_ASSERT_UNLOCKED(fs.first_object);
1604 VM_OBJECT_ASSERT_WLOCKED(fs.first_object);
1606 VM_OBJECT_WLOCK(fs.first_object);
1618 vm_object_reference_locked(fs.first_object);
1619 vm_object_pip_add(fs.first_object, 1);
1626 fs.object = fs.first_object;
1687 if (fs.first_object == fs.object)
1712 if (fs.object != fs.first_object) {
1831 * When "fs->first_object" is a shadow object, the pages in the backing object
1839 vm_object_t first_object;
1846 first_object = fs->first_object;
1848 if ((first_object->flags & (OBJ_FICTITIOUS | OBJ_UNMANAGED)) == 0) {
1849 VM_OBJECT_RLOCK(first_object);
1863 m_next = vm_page_find_least(first_object, pstart);
1889 VM_OBJECT_RUNLOCK(first_object);