Lines Matching refs:first_object
144 vm_object_t first_object; member
270 return (fs->object != fs->first_object); in vm_fault_might_be_cow()
282 VM_OBJECT_WLOCK(fs->first_object); in vm_fault_deallocate()
284 VM_OBJECT_WUNLOCK(fs->first_object); in vm_fault_deallocate()
285 vm_object_pip_wakeup(fs->first_object); in vm_fault_deallocate()
287 vm_object_deallocate(fs->first_object); in vm_fault_deallocate()
373 m = vm_page_lookup_unlocked(fs->first_object, fs->first_pindex); in vm_fault_soft_fast()
376 VM_OBJECT_WLOCK(fs->first_object); in vm_fault_soft_fast()
382 VM_OBJECT_RLOCK(fs->first_object); in vm_fault_soft_fast()
389 if (m->object != fs->first_object || m->pindex != fs->first_pindex) in vm_fault_soft_fast()
392 vm_object_busy(fs->first_object); in vm_fault_soft_fast()
415 if ((fs->first_object->flags & OBJ_UNMANAGED) == 0) in vm_fault_soft_fast()
452 VM_OBJECT_RUNLOCK(fs->first_object); in vm_fault_soft_fast()
454 vm_object_unbusy(fs->first_object); in vm_fault_soft_fast()
459 vm_object_unbusy(fs->first_object); in vm_fault_soft_fast()
461 if (!VM_OBJECT_TRYUPGRADE(fs->first_object)) { in vm_fault_soft_fast()
462 VM_OBJECT_RUNLOCK(fs->first_object); in vm_fault_soft_fast()
463 VM_OBJECT_WLOCK(fs->first_object); in vm_fault_soft_fast()
472 VM_OBJECT_ASSERT_WLOCKED(fs->first_object); in vm_fault_restore_map_lock()
473 MPASS(blockcount_read(&fs->first_object->paging_in_progress) > 0); in vm_fault_restore_map_lock()
476 VM_OBJECT_WUNLOCK(fs->first_object); in vm_fault_restore_map_lock()
478 VM_OBJECT_WLOCK(fs->first_object); in vm_fault_restore_map_lock()
527 MPASS(fs->object == fs->first_object); in vm_fault_populate()
528 VM_OBJECT_ASSERT_WLOCKED(fs->first_object); in vm_fault_populate()
529 MPASS(blockcount_read(&fs->first_object->paging_in_progress) > 0); in vm_fault_populate()
530 MPASS(fs->first_object->backing_object == NULL); in vm_fault_populate()
548 rv = vm_pager_populate(fs->first_object, fs->first_pindex, in vm_fault_populate()
552 VM_OBJECT_ASSERT_WLOCKED(fs->first_object); in vm_fault_populate()
570 MPASS(pager_last < fs->first_object->size); in vm_fault_populate()
576 vm_fault_populate_cleanup(fs->first_object, pager_first, in vm_fault_populate()
579 m = vm_page_lookup(fs->first_object, pager_first); in vm_fault_populate()
595 m = vm_page_lookup(fs->first_object, pager_first); in vm_fault_populate()
597 VM_OBJECT_WUNLOCK(fs->first_object); in vm_fault_populate()
611 VM_OBJECT_WLOCK(fs->first_object); in vm_fault_populate()
637 vm_fault_populate_cleanup(fs->first_object, pager_first, in vm_fault_populate()
643 vm_fault_populate_cleanup(fs->first_object, map_last + 1, in vm_fault_populate()
648 m = vm_page_lookup(fs->first_object, pidx); in vm_fault_populate()
663 VM_OBJECT_WUNLOCK(fs->first_object); in vm_fault_populate()
686 VM_OBJECT_WLOCK(fs->first_object); in vm_fault_populate()
806 if (fs->object == fs->first_object) in vm_fault_object_ensure_wlocked()
932 VM_PROT_FAULT_LOOKUP, &fs->entry, &fs->first_object, in vm_fault_lookup()
999 if (retry_object != fs->first_object || in vm_fault_relookup()
1059 is_first_object_locked = VM_OBJECT_TRYWLOCK(fs->first_object); in vm_fault_cow()
1061 fs->object == fs->first_object->backing_object) { in vm_fault_cow()
1079 vm_page_replace(fs->m, fs->first_object, fs->first_pindex, in vm_fault_cow()
1086 vm_reserv_rename(fs->m, fs->first_object, fs->object, in vm_fault_cow()
1087 OFF_TO_IDX(fs->first_object->backing_object_offset)); in vm_fault_cow()
1090 VM_OBJECT_WUNLOCK(fs->first_object); in vm_fault_cow()
1096 VM_OBJECT_WUNLOCK(fs->first_object); in vm_fault_cow()
1135 if ((fs->first_object->flags & OBJ_ONEMAPPING) == 0) in vm_fault_cow()
1144 fs->object = fs->first_object; in vm_fault_cow()
1156 if (fs->object == fs->first_object || !fs->can_read_lock) in vm_fault_next()
1171 if (fs->object == fs->first_object) { in vm_fault_next()
1197 if (fs->object != fs->first_object) in vm_fault_next()
1216 fs->object = fs->first_object; in vm_fault_zerofill()
1307 if (fs->object == fs->first_object && in vm_fault_allocate()
1308 (fs->first_object->flags & OBJ_POPULATE) != 0 && in vm_fault_allocate()
1309 fs->first_object->shadow_count == 0) { in vm_fault_allocate()
1498 vm_object_pip_wakeup(fs->first_object); in vm_fault_busy_sleep()
1505 vm_object_deallocate(fs->first_object); in vm_fault_busy_sleep()
1523 if (fs->object == fs->first_object || !fs->can_read_lock) in vm_fault_object()
1573 fs->object != fs->first_object->backing_object)) { in vm_fault_object()
1615 fs->object == fs->first_object)) { in vm_fault_object()
1728 VM_OBJECT_ASSERT_UNLOCKED(fs.first_object); in vm_fault()
1731 VM_OBJECT_ASSERT_WLOCKED(fs.first_object); in vm_fault()
1733 vm_page_iter_init(&pages, fs.first_object); in vm_fault()
1734 VM_OBJECT_WLOCK(fs.first_object); in vm_fault()
1746 vm_object_reference_locked(fs.first_object); in vm_fault()
1747 vm_object_pip_add(fs.first_object, 1); in vm_fault()
1754 fs.object = fs.first_object; in vm_fault()
1815 if (fs.first_object == fs.object) in vm_fault()
1939 KASSERT(fs.first_object == fs.object || vm_page_xbusied(fs.first_m), in vm_fault()
1992 vm_object_t first_object; in vm_fault_dontneed() local
1998 first_object = fs->first_object; in vm_fault_dontneed()
2000 if ((first_object->flags & (OBJ_FICTITIOUS | OBJ_UNMANAGED)) == 0) { in vm_fault_dontneed()
2001 VM_OBJECT_RLOCK(first_object); in vm_fault_dontneed()
2013 vm_page_iter_limit_init(&pages, first_object, in vm_fault_dontneed()
2040 VM_OBJECT_RUNLOCK(first_object); in vm_fault_dontneed()