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

Function vm_object_backing_remove_locked

freebsd/vm/vm_object.c:716–734  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

714}
715
716static void
717vm_object_backing_remove_locked(vm_object_t object)
718{
719 vm_object_t backing_object;
720
721 backing_object = object->backing_object;
722 VM_OBJECT_ASSERT_WLOCKED(object);
723 VM_OBJECT_ASSERT_WLOCKED(backing_object);
724
725 KASSERT((object->flags & OBJ_COLLAPSING) == 0,
726 ("vm_object_backing_remove: Removing collapsing object."));
727
728 if ((object->flags & OBJ_SHADOWLIST) != 0) {
729 LIST_REMOVE(object, shadow_list);
730 backing_object->shadow_count--;
731 object->flags &= ~OBJ_SHADOWLIST;
732 }
733 object->backing_object = NULL;
734}
735
736static void
737vm_object_backing_remove(vm_object_t object)

Callers 3

vm_object_backing_removeFunction · 0.85
vm_object_collapseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected