Searched refs:numbuckets (Results 1 - 1 of 1) sorted by relevance

/osnet-11/usr/src/lib/libzfs/common/
H A Dlibzfs_sendrecv.c216 uint64_t numbuckets; local
222 numbuckets = ddt.max_ddt_size/(sizeof (dedup_entry_t));
225 * numbuckets must be a power of 2. Increase number to
228 if (!ISP2(numbuckets))
229 numbuckets = 1 << high_order_bit(numbuckets);
231 ddt.dedup_hash_array = calloc(numbuckets, sizeof (dedup_entry_t *));
234 ddt.cur_ddt_size = numbuckets * sizeof (dedup_entry_t *);
235 ddt.numhashbits = high_order_bit(numbuckets) - 1;

Completed in 21 milliseconds