-/* If every one of the following buckets are DELETED (up to the next unused
- one), we can actually mark them all unused. */
-static void delete_run(struct htable *ht, unsigned int num)
-{
- unsigned int i, last = num + 1;
- size_t mask = (((size_t)1 << ht->bits)-1);
-
- while (ht->table[last & mask]) {
- if (entry_is_valid(ht->table[last & mask]))
- return;
- last++;
- }
-
- /* Now see if we can step backwards to find previous deleted ones. */
- for (i = num-1; ht->table[i & mask] == HTABLE_DELETED; i--);
-
- for (i++; i < last; i++)
- ht->table[i & ((1 << ht->bits)-1)] = 0;
-}
-