Lines Matching defs:iv

294 	indirect_vsd_t *iv = zio->io_vsd;
297 while ((is = list_remove_head(&iv->iv_splits)) != NULL) {
313 kmem_free(iv, sizeof (*iv));
1200 indirect_vsd_t *iv = zio->io_vsd;
1237 list_insert_tail(&iv->iv_splits, is);
1261 indirect_vsd_t *iv = zio->io_vsd;
1265 for (indirect_split_t *is = list_head(&iv->iv_splits);
1266 is != NULL; is = list_next(&iv->iv_splits, is)) {
1293 iv->iv_reconstruct = B_TRUE;
1300 indirect_vsd_t *iv = kmem_zalloc(sizeof (*iv), KM_SLEEP);
1301 list_create(&iv->iv_splits,
1304 zio->io_vsd = iv;
1321 indirect_split_t *first = list_head(&iv->iv_splits);
1339 ASSERT3P(list_next(&iv->iv_splits, first), ==, NULL);
1346 iv->iv_split_block = B_TRUE;
1369 for (indirect_split_t *is = list_head(&iv->iv_splits);
1370 is != NULL; is = list_next(&iv->iv_splits, is)) {
1426 indirect_vsd_t *iv = zio->io_vsd;
1431 for (indirect_split_t *is = list_head(&iv->iv_splits);
1432 is != NULL; is = list_next(&iv->iv_splits, is)) {
1468 indirect_vsd_t *iv = zio->io_vsd;
1473 for (indirect_split_t *is = list_head(&iv->iv_splits);
1474 is != NULL; is = list_next(&iv->iv_splits, is)) {
1498 vdev_indirect_splits_checksum_validate(indirect_vsd_t *iv, zio_t *zio)
1502 for (indirect_split_t *is = list_head(&iv->iv_splits);
1503 is != NULL; is = list_next(&iv->iv_splits, is)) {
1523 vdev_indirect_splits_enumerate_all(indirect_vsd_t *iv, zio_t *zio)
1527 iv->iv_attempts = 0;
1529 for (indirect_split_t *is = list_head(&iv->iv_splits);
1530 is != NULL; is = list_next(&iv->iv_splits, is))
1534 iv->iv_attempts++;
1537 if (vdev_indirect_splits_checksum_validate(iv, zio) == 0)
1540 for (indirect_split_t *is = list_head(&iv->iv_splits);
1541 is != NULL; is = list_next(&iv->iv_splits, is)) {
1553 ASSERT3S(iv->iv_attempts, <=, iv->iv_unique_combinations);
1564 vdev_indirect_splits_enumerate_randomly(indirect_vsd_t *iv, zio_t *zio)
1566 iv->iv_attempts = 0;
1568 while (iv->iv_attempts < iv->iv_attempts_max) {
1569 iv->iv_attempts++;
1571 for (indirect_split_t *is = list_head(&iv->iv_splits);
1572 is != NULL; is = list_next(&iv->iv_splits, is)) {
1583 if (vdev_indirect_splits_checksum_validate(iv, zio) == 0)
1597 vdev_indirect_splits_damage(indirect_vsd_t *iv, zio_t *zio)
1602 for (indirect_split_t *is = list_head(&iv->iv_splits);
1603 is != NULL; is = list_next(&iv->iv_splits, is)) {
1624 error = vdev_indirect_splits_enumerate_randomly(iv, zio);
1632 * Set iv->iv_attempts_max such that all unique combinations will
1635 iv->iv_attempts_max = 1;
1637 for (indirect_split_t *is = list_head(&iv->iv_splits);
1638 is != NULL; is = list_next(&iv->iv_splits, is)) {
1650 iv->iv_attempts_max *= 2;
1651 if (iv->iv_attempts_max >= (1ULL << 12)) {
1652 iv->iv_attempts_max = UINT64_MAX;
1659 for (indirect_split_t *is = list_head(&iv->iv_splits);
1660 is != NULL; is = list_next(&iv->iv_splits, is)) {
1724 indirect_vsd_t *iv = zio->io_vsd;
1728 iv->iv_unique_combinations = 1;
1729 iv->iv_attempts_max = UINT64_MAX;
1732 iv->iv_attempts_max = zfs_reconstruct_indirect_combinations_max;
1741 known_good = (vdev_indirect_splits_damage(iv, zio) == 0);
1750 for (indirect_split_t *is = list_head(&iv->iv_splits);
1751 is != NULL; is = list_next(&iv->iv_splits, is)) {
1786 iv->iv_unique_combinations *= is->is_unique_children;
1789 if (iv->iv_unique_combinations <= iv->iv_attempts_max)
1790 error = vdev_indirect_splits_enumerate_all(iv, zio);
1792 error = vdev_indirect_splits_enumerate_randomly(iv, zio);
1805 ASSERT0(vdev_indirect_splits_checksum_validate(iv, zio));
1814 indirect_vsd_t *iv = zio->io_vsd;
1816 if (iv->iv_reconstruct) {
1826 if (!iv->iv_split_block) {