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

Function bd_clear

freebsd/kern/vfs_bio.c:536–546  ·  view source on GitHub ↗

* bd_clear: * * Clear a domain from the appropriate bitsets when dirtybuffers * is decremented. */

Source from the content-addressed store, hash-verified

534 * is decremented.
535 */
536static void
537bd_clear(struct bufdomain *bd)
538{
539
540 mtx_lock(&bdirtylock);
541 if (bd->bd_numdirtybuffers <= bd->bd_lodirtybuffers)
542 BIT_CLR(BUF_DOMAINS, BD_DOMAIN(bd), &bdlodirty);
543 if (bd->bd_numdirtybuffers <= bd->bd_hidirtybuffers)
544 BIT_CLR(BUF_DOMAINS, BD_DOMAIN(bd), &bdhidirty);
545 mtx_unlock(&bdirtylock);
546}
547
548/*
549 * bd_set:

Callers 1

bdirtysubFunction · 0.85

Calls 2

mtx_lockFunction · 0.70
mtx_unlockFunction · 0.70

Tested by

no test coverage detected