Lines Matching refs:sav_vdevs
1294 vdev_free(spa->spa_spares.sav_vdevs[i]);
1295 if (spa->spa_spares.sav_vdevs) {
1296 kmem_free(spa->spa_spares.sav_vdevs,
1298 spa->spa_spares.sav_vdevs = NULL;
1307 vdev_clear_stats(spa->spa_l2cache.sav_vdevs[i]);
1308 vdev_free(spa->spa_l2cache.sav_vdevs[i]);
1310 if (spa->spa_l2cache.sav_vdevs) {
1311 kmem_free(spa->spa_l2cache.sav_vdevs,
1313 spa->spa_l2cache.sav_vdevs = NULL;
1351 vd = spa->spa_spares.sav_vdevs[i];
1361 if (spa->spa_spares.sav_vdevs)
1362 kmem_free(spa->spa_spares.sav_vdevs,
1372 spa->spa_spares.sav_vdevs = NULL;
1386 spa->spa_spares.sav_vdevs = kmem_alloc(nspares * sizeof (void *),
1393 spa->spa_spares.sav_vdevs[i] = vd;
1438 spa->spa_spares.sav_vdevs[i], B_TRUE, VDEV_CONFIG_SPARE);
1475 oldvdevs = sav->sav_vdevs;
1477 sav->sav_vdevs = NULL;
1554 sav->sav_vdevs = newvdevs;
1567 sav->sav_vdevs[i], B_TRUE, VDEV_CONFIG_L2CACHE);
1848 spa_check_removed(sav->sav_vdevs[i]);
3289 spa->spa_l2cache.sav_vdevs[j]->vdev_guid) {
3290 vd = spa->spa_l2cache.sav_vdevs[j];
3577 vd = sav->sav_vdevs[i];
5475 if (spa->spa_spares.sav_vdevs != NULL &&
5494 } else if (spa->spa_l2cache.sav_vdevs != NULL &&
5888 spa_async_remove(spa, spa->spa_l2cache.sav_vdevs[i]);
5890 spa_async_remove(spa, spa->spa_spares.sav_vdevs[i]);
6105 list[i] = vdev_config_generate(spa, sav->sav_vdevs[i],
6866 vd = spa->spa_l2cache.sav_vdevs[i];
6872 vd = spa->spa_spares.sav_vdevs[i];
6912 if (sav->sav_vdevs[i]->vdev_guid == guid)
6936 if (spa_spare_exists(sav->sav_vdevs[i]->vdev_guid, &pool,