* Unload a UMA bucket from a per-cpu cache. */
| 775 | * Unload a UMA bucket from a per-cpu cache. |
| 776 | */ |
| 777 | static inline uma_bucket_t |
| 778 | cache_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 | |
| 793 | static inline uma_bucket_t |
| 794 | cache_bucket_unload_alloc(uma_cache_t cache) |
no outgoing calls
no test coverage detected