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

Function swapgeom_acquire

freebsd/vm/swap_pager.c:2762–2768  ·  view source on GitHub ↗

* Add a reference to the g_consumer for an inflight transaction. */

Source from the content-addressed store, hash-verified

2760 * Add a reference to the g_consumer for an inflight transaction.
2761 */
2762static void
2763swapgeom_acquire(struct g_consumer *cp)
2764{
2765
2766 mtx_assert(&sw_dev_mtx, MA_OWNED);
2767 cp->index++;
2768}
2769
2770/*
2771 * Remove a reference from the g_consumer. Post a close event if all

Callers 1

swapgeom_strategyFunction · 0.85

Calls 1

mtx_assertFunction · 0.85

Tested by

no test coverage detected