MCPcopy Create free account
hub / github.com/F-Stack/f-stack / vm_fault_restore_map_lock

Function vm_fault_restore_map_lock

freebsd/vm/vm_fault.c:370–383  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

368}
369
370static void
371vm_fault_restore_map_lock(struct faultstate *fs)
372{
373
374 VM_OBJECT_ASSERT_WLOCKED(fs->first_object);
375 MPASS(blockcount_read(&fs->first_object->paging_in_progress) > 0);
376
377 if (!vm_map_trylock_read(fs->map)) {
378 VM_OBJECT_WUNLOCK(fs->first_object);
379 vm_map_lock_read(fs->map);
380 VM_OBJECT_WLOCK(fs->first_object);
381 }
382 fs->lookup_still_valid = true;
383}
384
385static void
386vm_fault_populate_check_page(vm_page_t m)

Callers 1

vm_fault_populateFunction · 0.85

Calls 1

blockcount_readFunction · 0.85

Tested by

no test coverage detected