/* Our own version of log2(). Same thing as highbit()-1.  */
static int zfs_log2(uint64_t num)
/* Our own version of log2(). Same thing as highbit()-1.  */
static int zfs_log2(uint64_t num)
{
	int i = 0;
	while (num > 1) {
		i++;
		num = num >> 1;
	}
	return i;
}