Lines Matching refs:vdev_children
2151 vd->vdev_children < nparity + 1) { in vdev_raidz_open()
2158 for (c = 0; c < vd->vdev_children; c++) { in vdev_raidz_open()
2171 for (c = 0; c < vd->vdev_children; c++) { in vdev_raidz_open()
2181 *asize *= vd->vdev_children - 1; in vdev_raidz_open()
2182 *max_asize *= vd->vdev_children - 1; in vdev_raidz_open()
2186 *asize *= vd->vdev_children; in vdev_raidz_open()
2187 *max_asize *= vd->vdev_children; in vdev_raidz_open()
2201 for (int c = 0; c < vd->vdev_children; c++) { in vdev_raidz_close()
2316 return ((vd->vdev_min_asize + vd->vdev_children - 1) / in vdev_raidz_min_asize()
2317 vd->vdev_children); in vdev_raidz_min_asize()
2962 int physical_width = zio->io_vd->vdev_children; in raidz_reconstruct()
3157 int physical_width = zio->io_vd->vdev_children; in vdev_raidz_combrec()
3653 uint64_t dcols = vd->vdev_children; in vdev_raidz_need_resilver()
3838 (unsigned long long)vd->vdev_children); in raidz_reflow_complete_sync()
3983 for (int i = 0; i < raidz_vd->vdev_children; i++) { in vdev_raidz_expand_child_replacing()
4008 uint_t old_children = vd->vdev_children - 1; in raidz_reflow_impl()
4043 uint_t writes = MIN(blocks, vd->vdev_children); in raidz_reflow_impl()
4089 uint_t b = blocks / vd->vdev_children; in raidz_reflow_impl()
4090 uint_t bb = blocks % vd->vdev_children; in raidz_reflow_impl()
4095 vd->vdev_child[(blkid + i) % vd->vdev_children], in raidz_reflow_impl()
4096 ((blkid + i) / vd->vdev_children) << ashift, in raidz_reflow_impl()
4117 rra->rra_zio[b % vd->vdev_children]->io_abd, in raidz_reflow_impl()
4118 (b / vd->vdev_children) << ashift, in raidz_reflow_impl()
4177 uint64_t logical_size = write_size * raidvd->vdev_children; in raidz_reflow_scratch_sync()
4179 P2ROUNDUP(DIV_ROUND_UP(logical_size, (raidvd->vdev_children - 1)), in raidz_reflow_scratch_sync()
4187 VERIFY3U(write_size, >=, raidvd->vdev_children << ashift); in raidz_reflow_scratch_sync()
4194 abd_t **abds = kmem_alloc(raidvd->vdev_children * sizeof (abd_t *), in raidz_reflow_scratch_sync()
4196 for (int i = 0; i < raidvd->vdev_children; i++) { in raidz_reflow_scratch_sync()
4214 for (int i = 0; i < raidvd->vdev_children; i++) { in raidz_reflow_scratch_sync()
4240 for (int i = 0; i < raidvd->vdev_children - 1; i++) { in raidz_reflow_scratch_sync()
4251 for (int i = 0; i < raidvd->vdev_children; i++) in raidz_reflow_scratch_sync()
4253 kmem_free(abds, raidvd->vdev_children * sizeof (abd_t *)); in raidz_reflow_scratch_sync()
4265 for (int i = raidvd->vdev_children - 1; i < logical_sectors; i++) { in raidz_reflow_scratch_sync()
4266 int oldchild = i % (raidvd->vdev_children - 1); in raidz_reflow_scratch_sync()
4267 uint64_t oldoff = (i / (raidvd->vdev_children - 1)) << ashift; in raidz_reflow_scratch_sync()
4269 int newchild = i % raidvd->vdev_children; in raidz_reflow_scratch_sync()
4270 uint64_t newoff = (i / raidvd->vdev_children) << ashift; in raidz_reflow_scratch_sync()
4283 VERIFY0(logical_sectors % raidvd->vdev_children); in raidz_reflow_scratch_sync()
4284 VERIFY3U((logical_sectors / raidvd->vdev_children) << ashift, ==, in raidz_reflow_scratch_sync()
4291 for (int i = 0; i < raidvd->vdev_children; i++) { in raidz_reflow_scratch_sync()
4345 for (int i = 0; i < raidvd->vdev_children; i++) { in raidz_reflow_scratch_sync()
4372 for (int i = 0; i < raidvd->vdev_children; i++) in raidz_reflow_scratch_sync()
4374 kmem_free(abds, raidvd->vdev_children * sizeof (abd_t *)); in raidz_reflow_scratch_sync()
4434 ASSERT0(logical_size % raidvd->vdev_children); in vdev_raidz_reflow_copy_scratch()
4435 uint64_t write_size = logical_size / raidvd->vdev_children; in vdev_raidz_reflow_copy_scratch()
4442 abd_t **abds = kmem_alloc(raidvd->vdev_children * sizeof (abd_t *), in vdev_raidz_reflow_copy_scratch()
4444 for (int i = 0; i < raidvd->vdev_children; i++) { in vdev_raidz_reflow_copy_scratch()
4449 for (int i = 0; i < raidvd->vdev_children; i++) { in vdev_raidz_reflow_copy_scratch()
4466 for (int i = 0; i < raidvd->vdev_children; i++) { in vdev_raidz_reflow_copy_scratch()
4480 for (int i = 0; i < raidvd->vdev_children; i++) in vdev_raidz_reflow_copy_scratch()
4482 kmem_free(abds, raidvd->vdev_children * sizeof (abd_t *)); in vdev_raidz_reflow_copy_scratch()
4784 uint64_t new_children = raidvd->vdev_children; in vdev_raidz_attach_check()
4807 ASSERT3U(raidvd->vdev_children, >, vdrz->vd_original_width); in vdev_raidz_attach_sync()
4808 ASSERT3U(raidvd->vdev_children, ==, vdrz->vd_physical_width + 1); in vdev_raidz_attach_sync()
4809 ASSERT3P(raidvd->vdev_child[raidvd->vdev_children - 1], ==, in vdev_raidz_attach_sync()
4852 (unsigned long long)raidvd->vdev_children); in vdev_raidz_attach_sync()
4912 for (int c = 0; c < spa->spa_root_vdev->vdev_children; c++) { in spa_raidz_expand_get_stats()
5124 return (vd->vdev_children); in vdev_raidz_ndisks()