Lines Matching refs:first_object
123 vm_object_t first_object; member
186 if (fs->object != fs->first_object) { in unlock_and_deallocate()
187 VM_OBJECT_WLOCK(fs->first_object); in unlock_and_deallocate()
191 vm_object_pip_wakeup(fs->first_object); in unlock_and_deallocate()
192 VM_OBJECT_WUNLOCK(fs->first_object); in unlock_and_deallocate()
195 vm_object_deallocate(fs->first_object); in unlock_and_deallocate()
294 m = vm_page_lookup(fs->first_object, fs->first_pindex); in vm_fault_soft_fast()
320 if ((fs->first_object->flags & OBJ_UNMANAGED) == 0) in vm_fault_soft_fast()
341 VM_OBJECT_RUNLOCK(fs->first_object); in vm_fault_soft_fast()
351 VM_OBJECT_ASSERT_WLOCKED(fs->first_object); in vm_fault_restore_map_lock()
352 MPASS(fs->first_object->paging_in_progress > 0); in vm_fault_restore_map_lock()
355 VM_OBJECT_WUNLOCK(fs->first_object); in vm_fault_restore_map_lock()
357 VM_OBJECT_WLOCK(fs->first_object); in vm_fault_restore_map_lock()
405 MPASS(fs->object == fs->first_object); in vm_fault_populate()
406 VM_OBJECT_ASSERT_WLOCKED(fs->first_object); in vm_fault_populate()
407 MPASS(fs->first_object->paging_in_progress > 0); in vm_fault_populate()
408 MPASS(fs->first_object->backing_object == NULL); in vm_fault_populate()
424 rv = vm_pager_populate(fs->first_object, fs->first_pindex, in vm_fault_populate()
427 VM_OBJECT_ASSERT_WLOCKED(fs->first_object); in vm_fault_populate()
445 MPASS(pager_last < fs->first_object->size); in vm_fault_populate()
449 vm_fault_populate_cleanup(fs->first_object, pager_first, in vm_fault_populate()
465 vm_fault_populate_cleanup(fs->first_object, pager_first, in vm_fault_populate()
471 vm_fault_populate_cleanup(fs->first_object, map_last + 1, in vm_fault_populate()
475 for (pidx = pager_first, m = vm_page_lookup(fs->first_object, pidx); in vm_fault_populate()
495 VM_OBJECT_WUNLOCK(fs->first_object); in vm_fault_populate()
510 VM_OBJECT_WLOCK(fs->first_object); in vm_fault_populate()
604 VM_PROT_FAULT_LOOKUP, &fs.entry, &fs.first_object, in vm_fault_hold()
653 (fs.first_object->type != OBJT_VNODE && in vm_fault_hold()
654 (fs.first_object->flags & OBJ_TMPFS_NODE) == 0) || in vm_fault_hold()
655 (fs.first_object->flags & OBJ_MIGHTBEDIRTY) != 0)) { in vm_fault_hold()
656 VM_OBJECT_RLOCK(fs.first_object); in vm_fault_hold()
658 (fs.first_object->type != OBJT_VNODE && in vm_fault_hold()
659 (fs.first_object->flags & OBJ_TMPFS_NODE) == 0) || in vm_fault_hold()
660 (fs.first_object->flags & OBJ_MIGHTBEDIRTY) != 0) { in vm_fault_hold()
666 if (!VM_OBJECT_TRYUPGRADE(fs.first_object)) { in vm_fault_hold()
667 VM_OBJECT_RUNLOCK(fs.first_object); in vm_fault_hold()
668 VM_OBJECT_WLOCK(fs.first_object); in vm_fault_hold()
671 VM_OBJECT_WLOCK(fs.first_object); in vm_fault_hold()
683 vm_object_reference_locked(fs.first_object); in vm_fault_hold()
684 vm_object_pip_add(fs.first_object, 1); in vm_fault_hold()
693 fs.object = fs.first_object; in vm_fault_hold()
739 if (fs.object != fs.first_object) { in vm_fault_hold()
741 fs.first_object)) { in vm_fault_hold()
743 VM_OBJECT_WLOCK(fs.first_object); in vm_fault_hold()
749 vm_object_pip_wakeup(fs.first_object); in vm_fault_hold()
750 VM_OBJECT_WUNLOCK(fs.first_object); in vm_fault_hold()
761 vm_object_deallocate(fs.first_object); in vm_fault_hold()
785 fs.object == fs.first_object) { in vm_fault_hold()
791 if (fs.object == fs.first_object && in vm_fault_hold()
792 (fs.first_object->flags & OBJ_POPULATE) != 0 && in vm_fault_hold()
793 fs.first_object->shadow_count == 0) { in vm_fault_hold()
1053 if (fs.object != fs.first_object) { in vm_fault_hold()
1068 if (fs.object == fs.first_object) in vm_fault_hold()
1081 if (fs.object != fs.first_object) { in vm_fault_hold()
1085 fs.object = fs.first_object; in vm_fault_hold()
1110 if (fs.object != fs.first_object) in vm_fault_hold()
1131 if (fs.object != fs.first_object) { in vm_fault_hold()
1165 (is_first_object_locked = VM_OBJECT_TRYWLOCK(fs.first_object)) && in vm_fault_hold()
1169 fs.object == fs.first_object->backing_object) { in vm_fault_hold()
1175 vm_page_replace_checked(fs.m, fs.first_object, in vm_fault_hold()
1184 vm_reserv_rename(fs.m, fs.first_object, in vm_fault_hold()
1186 fs.first_object->backing_object_offset)); in vm_fault_hold()
1226 fs.object = fs.first_object; in vm_fault_hold()
1270 if ((retry_object != fs.first_object) || in vm_fault_hold()
1394 vm_object_t first_object, object; in vm_fault_dontneed() local
1402 first_object = fs->first_object; in vm_fault_dontneed()
1403 if (first_object != object) { in vm_fault_dontneed()
1404 if (!VM_OBJECT_TRYWLOCK(first_object)) { in vm_fault_dontneed()
1406 VM_OBJECT_WLOCK(first_object); in vm_fault_dontneed()
1411 if ((first_object->flags & (OBJ_FICTITIOUS | OBJ_UNMANAGED)) == 0) { in vm_fault_dontneed()
1425 m_next = vm_page_find_least(first_object, pstart); in vm_fault_dontneed()
1451 if (first_object != object) in vm_fault_dontneed()
1452 VM_OBJECT_WUNLOCK(first_object); in vm_fault_dontneed()