Lines Matching refs:l2cache
1447 nvlist_t **l2cache; in spa_load_l2cache() local
1458 ZPOOL_CONFIG_L2CACHE, &l2cache, &nl2cache) == 0); in spa_load_l2cache()
1474 VERIFY(nvlist_lookup_uint64(l2cache[i], ZPOOL_CONFIG_GUID, in spa_load_l2cache()
1494 VERIFY(spa_config_parse(spa, &vd, l2cache[i], NULL, 0, in spa_load_l2cache()
1518 (void) nvlist_lookup_boolean_value(l2cache[i], in spa_load_l2cache()
1560 l2cache = kmem_alloc(sav->sav_count * sizeof (void *), KM_SLEEP); in spa_load_l2cache()
1562 l2cache[i] = vdev_config_generate(spa, in spa_load_l2cache()
1565 ZPOOL_CONFIG_L2CACHE, l2cache, sav->sav_count) == 0); in spa_load_l2cache()
1568 nvlist_free(l2cache[i]); in spa_load_l2cache()
1570 kmem_free(l2cache, sav->sav_count * sizeof (void *)); in spa_load_l2cache()
3139 nvlist_t **l2cache; in spa_add_l2cache() local
3155 ZPOOL_CONFIG_L2CACHE, &l2cache, &nl2cache) == 0); in spa_add_l2cache()
3158 ZPOOL_CONFIG_L2CACHE, l2cache, nl2cache) == 0); in spa_add_l2cache()
3160 ZPOOL_CONFIG_L2CACHE, &l2cache, &nl2cache) == 0); in spa_add_l2cache()
3167 VERIFY(nvlist_lookup_uint64(l2cache[i], in spa_add_l2cache()
3180 VERIFY(nvlist_lookup_uint64_array(l2cache[i], in spa_add_l2cache()
3484 nvlist_t **spares, **l2cache; in spa_create() local
3594 &l2cache, &nl2cache) == 0) { in spa_create()
3598 ZPOOL_CONFIG_L2CACHE, l2cache, nl2cache) == 0); in spa_create()
3930 nvlist_t **spares, **l2cache; in spa_import() local
4057 &l2cache, &nl2cache) == 0) { in spa_import()
4065 ZPOOL_CONFIG_L2CACHE, l2cache, nl2cache) == 0); in spa_import()
4349 nvlist_t **spares, **l2cache; in spa_vdev_add() local
4366 if (nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_L2CACHE, &l2cache, in spa_vdev_add()
4413 spa_set_aux_vdevs(&spa->spa_l2cache, l2cache, nl2cache, in spa_vdev_add()
5315 nvlist_t **spares, **l2cache, *nv; in spa_vdev_remove() local
5346 ZPOOL_CONFIG_L2CACHE, &l2cache, &nl2cache) == 0 && in spa_vdev_remove()
5347 (nv = spa_nvlist_lookup_by_guid(l2cache, nl2cache, guid)) != NULL) { in spa_vdev_remove()
5352 ZPOOL_CONFIG_L2CACHE, l2cache, nl2cache, nv); in spa_vdev_remove()