* Given a desired number of entries for a bucket, return the zone from which * to allocate the bucket. */
| 429 | * to allocate the bucket. |
| 430 | */ |
| 431 | static struct uma_bucket_zone * |
| 432 | bucket_zone_lookup(int entries) |
| 433 | { |
| 434 | struct uma_bucket_zone *ubz; |
| 435 | |
| 436 | for (ubz = &bucket_zones[0]; ubz->ubz_entries != 0; ubz++) |
| 437 | if (ubz->ubz_entries >= entries) |
| 438 | return (ubz); |
| 439 | ubz--; |
| 440 | return (ubz); |
| 441 | } |
| 442 | |
| 443 | static int |
| 444 | bucket_select(int size) |
no outgoing calls
no test coverage detected