Lines Matching defs:aux
989 spa_aux_t *aux;
992 if ((aux = avl_find(avl, &search, &where)) != NULL) {
993 aux->aux_count++;
995 aux = kmem_zalloc(sizeof (spa_aux_t), KM_SLEEP);
996 aux->aux_guid = vd->vdev_guid;
997 aux->aux_count = 1;
998 avl_insert(avl, aux, where);
1006 spa_aux_t *aux;
1010 aux = avl_find(avl, &search, &where);
1012 ASSERT(aux != NULL);
1014 if (--aux->aux_count == 0) {
1015 avl_remove(avl, aux);
1016 kmem_free(aux, sizeof (spa_aux_t));
1017 } else if (aux->aux_pool == spa_guid(vd->vdev_spa)) {
1018 aux->aux_pool = 0ULL;
1133 * for these devices the aux reference count is currently unused beyond 1.