Lines Matching refs:nl2cache
1449 uint_t nl2cache; in spa_load_l2cache() local
1459 ZPOOL_CONFIG_L2CACHE, &l2cache, &nl2cache) == 0); in spa_load_l2cache()
1460 newvdevs = kmem_alloc(nl2cache * sizeof (void *), KM_SLEEP); in spa_load_l2cache()
1462 nl2cache = 0; in spa_load_l2cache()
1474 for (i = 0; i < nl2cache; i++) { in spa_load_l2cache()
1552 sav->sav_count = (int)nl2cache; in spa_load_l2cache()
3154 uint_t i, j, nl2cache; in spa_add_l2cache() local
3169 ZPOOL_CONFIG_L2CACHE, &l2cache, &nl2cache) == 0); in spa_add_l2cache()
3170 if (nl2cache != 0) { in spa_add_l2cache()
3172 ZPOOL_CONFIG_L2CACHE, l2cache, nl2cache) == 0); in spa_add_l2cache()
3174 ZPOOL_CONFIG_L2CACHE, &l2cache, &nl2cache) == 0); in spa_add_l2cache()
3180 for (i = 0; i < nl2cache; i++) { in spa_add_l2cache()
3499 uint_t nspares, nl2cache; in spa_create() local
3608 &l2cache, &nl2cache) == 0) { in spa_create()
3612 ZPOOL_CONFIG_L2CACHE, l2cache, nl2cache) == 0); in spa_create()
3952 uint_t nspares, nl2cache; in spa_import() local
4079 &l2cache, &nl2cache) == 0) { in spa_import()
4087 ZPOOL_CONFIG_L2CACHE, l2cache, nl2cache) == 0); in spa_import()
4375 uint_t nspares, nl2cache; in spa_vdev_add() local
4392 &nl2cache) != 0) in spa_vdev_add()
4393 nl2cache = 0; in spa_vdev_add()
4395 if (vd->vdev_children == 0 && nspares == 0 && nl2cache == 0) in spa_vdev_add()
4437 if (nl2cache != 0) { in spa_vdev_add()
4438 spa_set_aux_vdevs(&spa->spa_l2cache, l2cache, nl2cache, in spa_vdev_add()
5345 uint_t nspares, nl2cache; in spa_vdev_remove() local
5374 ZPOOL_CONFIG_L2CACHE, &l2cache, &nl2cache) == 0 && in spa_vdev_remove()
5375 (nv = spa_nvlist_lookup_by_guid(l2cache, nl2cache, guid)) != NULL) { in spa_vdev_remove()
5380 ZPOOL_CONFIG_L2CACHE, l2cache, nl2cache, nv); in spa_vdev_remove()