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

Function vm_reserv_remove

freebsd/vm/vm_reserv.c:392–409  ·  view source on GitHub ↗

* Remove a reservation from the object's objq. */

Source from the content-addressed store, hash-verified

390 * Remove a reservation from the object's objq.
391 */
392static void
393vm_reserv_remove(vm_reserv_t rv)
394{
395 vm_object_t object;
396
397 vm_reserv_assert_locked(rv);
398 CTR5(KTR_VM, "%s: rv %p object %p popcnt %d inpartpop %d",
399 __FUNCTION__, rv, rv->object, rv->popcnt, rv->inpartpopq);
400 KASSERT(rv->object != NULL,
401 ("vm_reserv_remove: reserv %p is free", rv));
402 KASSERT(!rv->inpartpopq,
403 ("vm_reserv_remove: reserv %p's inpartpopq is TRUE", rv));
404 object = rv->object;
405 vm_reserv_object_lock(object);
406 LIST_REMOVE(rv, objq);
407 rv->object = NULL;
408 vm_reserv_object_unlock(object);
409}
410
411/*
412 * Insert a new reservation into the object's objq.

Callers 2

vm_reserv_depopulateFunction · 0.85
vm_reserv_breakFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected