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

Function bd_set

freebsd/kern/vfs_bio.c:554–564  ·  view source on GitHub ↗

* bd_set: * * Set a domain in the appropriate bitsets when dirtybuffers * is incremented. */

Source from the content-addressed store, hash-verified

552 * is incremented.
553 */
554static void
555bd_set(struct bufdomain *bd)
556{
557
558 mtx_lock(&bdirtylock);
559 if (bd->bd_numdirtybuffers > bd->bd_lodirtybuffers)
560 BIT_SET(BUF_DOMAINS, BD_DOMAIN(bd), &bdlodirty);
561 if (bd->bd_numdirtybuffers > bd->bd_hidirtybuffers)
562 BIT_SET(BUF_DOMAINS, BD_DOMAIN(bd), &bdhidirty);
563 mtx_unlock(&bdirtylock);
564}
565
566/*
567 * bdirtysub:

Callers 1

bdirtyaddFunction · 0.85

Calls 2

mtx_lockFunction · 0.70
mtx_unlockFunction · 0.70

Tested by

no test coverage detected