* Free the hash bucket to the appropriate backing store. * * Arguments: * slab_hash The hash bucket we're freeing * hashsize The number of entries in that hash bucket * * Returns: * Nothing */
| 1121 | * Nothing |
| 1122 | */ |
| 1123 | static void |
| 1124 | hash_free(struct uma_hash *hash) |
| 1125 | { |
| 1126 | if (hash->uh_slab_hash == NULL) |
| 1127 | return; |
| 1128 | if (hash->uh_hashsize == UMA_HASH_SIZE_INIT) |
| 1129 | zone_free_item(hashzone, hash->uh_slab_hash, NULL, SKIP_NONE); |
| 1130 | else |
| 1131 | free(hash->uh_slab_hash, M_UMAHASH); |
| 1132 | } |
| 1133 | |
| 1134 | /* |
| 1135 | * Frees all outstanding items in a bucket |
no test coverage detected