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

Function cache_bucket_unload

freebsd/vm/uma_core.c:777–791  ·  view source on GitHub ↗

* Unload a UMA bucket from a per-cpu cache. */

Source from the content-addressed store, hash-verified

775 * Unload a UMA bucket from a per-cpu cache.
776 */
777static inline uma_bucket_t
778cache_bucket_unload(uma_cache_bucket_t bucket)
779{
780 uma_bucket_t b;
781
782 b = bucket->ucb_bucket;
783 if (b != NULL) {
784 MPASS(b->ub_entries == bucket->ucb_entries);
785 b->ub_cnt = bucket->ucb_cnt;
786 bucket->ucb_bucket = NULL;
787 bucket->ucb_entries = bucket->ucb_cnt = 0;
788 }
789
790 return (b);
791}
792
793static inline uma_bucket_t
794cache_bucket_unload_alloc(uma_cache_t cache)

Callers 4

cache_bucket_unload_freeFunction · 0.85
cache_freeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected