* bd_speedup - speedup the buffer cache flushing code */
| 1010 | * bd_speedup - speedup the buffer cache flushing code |
| 1011 | */ |
| 1012 | void |
| 1013 | bd_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 |
no test coverage detected