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

Function bufkva_reclaim

freebsd/kern/vfs_bio.c:2068–2084  ·  view source on GitHub ↗

* bufkva_reclaim: * * Reclaim buffer kva by freeing buffers holding kva. This is a vmem * callback that fires to avoid returning failure. */

Source from the content-addressed store, hash-verified

2066 * callback that fires to avoid returning failure.
2067 */
2068static void
2069bufkva_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

Callers

nothing calls this directly

Calls 1

buf_recycleFunction · 0.85

Tested by

no test coverage detected