* bufkva_reclaim: * * Reclaim buffer kva by freeing buffers holding kva. This is a vmem * callback that fires to avoid returning failure. */
| 2066 | * callback that fires to avoid returning failure. |
| 2067 | */ |
| 2068 | static void |
| 2069 | bufkva_reclaim(vmem_t *vmem, int flags) |
| 2070 | { |
| 2071 | bool done; |
| 2072 | int q; |
| 2073 | int i; |
| 2074 | |
| 2075 | done = false; |
| 2076 | for (i = 0; i < 5; i++) { |
| 2077 | for (q = 0; q < buf_domains; q++) |
| 2078 | if (buf_recycle(&bdomain[q], true) != 0) |
| 2079 | done = true; |
| 2080 | if (done) |
| 2081 | break; |
| 2082 | } |
| 2083 | return; |
| 2084 | } |
| 2085 | |
| 2086 | /* |
| 2087 | * Attempt to initiate asynchronous I/O on read-ahead blocks. We must |
nothing calls this directly
no test coverage detected