Lines Matching defs:aux
868 spa_aux_t *aux;
871 if ((aux = avl_find(avl, &search, &where)) != NULL) {
872 aux->aux_count++;
874 aux = kmem_zalloc(sizeof (spa_aux_t), KM_SLEEP);
875 aux->aux_guid = vd->vdev_guid;
876 aux->aux_count = 1;
877 avl_insert(avl, aux, where);
885 spa_aux_t *aux;
889 aux = avl_find(avl, &search, &where);
891 ASSERT(aux != NULL);
893 if (--aux->aux_count == 0) {
894 avl_remove(avl, aux);
895 kmem_free(aux, sizeof (spa_aux_t));
896 } else if (aux->aux_pool == spa_guid(vd->vdev_spa)) {
897 aux->aux_pool = 0ULL;
1012 * for these devices the aux reference count is currently unused beyond 1.