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

Function bd_speedup

freebsd/kern/vfs_bio.c:1012–1026  ·  view source on GitHub ↗

* bd_speedup - speedup the buffer cache flushing code */

Source from the content-addressed store, hash-verified

1010 * bd_speedup - speedup the buffer cache flushing code
1011 */
1012void
1013bd_speedup(void)
1014{
1015 int needwake;
1016
1017 mtx_lock(&bdlock);
1018 needwake = 0;
1019 if (bd_speedupreq == 0 || bd_request == 0)
1020 needwake = 1;
1021 bd_speedupreq = 1;
1022 bd_request = 1;
1023 if (needwake)
1024 wakeup(&bd_request);
1025 mtx_unlock(&bdlock);
1026}
1027
1028#ifdef __i386__
1029#define TRANSIENT_DENOM 5

Callers 1

bufspace_daemonFunction · 0.85

Calls 3

mtx_lockFunction · 0.70
wakeupFunction · 0.70
mtx_unlockFunction · 0.70

Tested by

no test coverage detected