Lines Matching refs:nparity
585 uint64_t nparity) in vdev_raidz_map_alloc() argument
606 uint64_t q = s / (dcols - nparity); in vdev_raidz_map_alloc()
612 uint64_t r = s - q * (dcols - nparity); in vdev_raidz_map_alloc()
615 uint64_t bc = (r == 0 ? 0 : r + nparity); in vdev_raidz_map_alloc()
621 uint64_t tot = s + nparity * (q + (r == 0 ? 0 : 1)); in vdev_raidz_map_alloc()
630 scols = MIN(dcols, roundup(bc, nparity + 1)); in vdev_raidz_map_alloc()
641 rr->rr_firstdatacol = nparity; in vdev_raidz_map_alloc()
671 rm->rm_nskip = roundup(tot, nparity + 1) - tot; in vdev_raidz_map_alloc()
737 uint64_t nparity, uint64_t reflow_offset_synced, in vdev_raidz_map_alloc_expanded() argument
752 uint64_t q = s / (logical_cols - nparity); in vdev_raidz_map_alloc_expanded()
758 uint64_t r = s - q * (logical_cols - nparity); in vdev_raidz_map_alloc_expanded()
761 uint64_t bc = (r == 0 ? 0 : r + nparity); in vdev_raidz_map_alloc_expanded()
767 uint64_t tot = s + nparity * (q + (r == 0 ? 0 : 1)); in vdev_raidz_map_alloc_expanded()
777 rm->rm_nskip = roundup(tot, nparity + 1) - tot; in vdev_raidz_map_alloc_expanded()
827 rr->rr_firstdatacol = nparity; in vdev_raidz_map_alloc_expanded()
2143 uint64_t nparity = vdrz->vd_nparity; in vdev_raidz_open() local
2148 ASSERT(nparity > 0); in vdev_raidz_open()
2150 if (nparity > VDEV_RAIDZ_MAXPARITY || in vdev_raidz_open()
2151 vd->vdev_children < nparity + 1) { in vdev_raidz_open()
2190 if (numerrors > nparity) { in vdev_raidz_open()
2253 uint64_t nparity = vdrz->vd_nparity; in vdev_raidz_asize_to_psize() local
2266 psize = psize - (rows * cols) <= nparity ? rows * cols : psize; in vdev_raidz_asize_to_psize()
2268 psize -= nparity * DIV_ROUND_UP(psize, cols); in vdev_raidz_asize_to_psize()
2289 uint64_t nparity = vdrz->vd_nparity; in vdev_raidz_psize_to_asize() local
2294 asize += nparity * ((asize + cols - nparity - 1) / (cols - nparity)); in vdev_raidz_psize_to_asize()
2295 asize = roundup(asize, nparity + 1) << ashift; in vdev_raidz_psize_to_asize()
2300 asize_new += nparity * ((asize_new + ncols_new - nparity - 1) / in vdev_raidz_psize_to_asize()
2301 (ncols_new - nparity)); in vdev_raidz_psize_to_asize()
2302 asize_new = roundup(asize_new, nparity + 1) << ashift; in vdev_raidz_psize_to_asize()
2959 raidz_reconstruct(zio_t *zio, int *ltgts, int ntgts, int nparity) in raidz_reconstruct() argument
2988 if (c >= nparity) in raidz_reconstruct()
3009 if (c >= nparity) in raidz_reconstruct()
3036 if (dead > nparity) { in raidz_reconstruct()
3155 int nparity = vdev_get_nparity(zio->io_vd); in vdev_raidz_combrec() local
3170 if (total_errors > nparity) in vdev_raidz_combrec()
3174 for (int num_failures = 1; num_failures <= nparity; num_failures++) { in vdev_raidz_combrec()
3189 ASSERT3U(num_failures, <=, nparity); in vdev_raidz_combrec()
3201 nparity); in vdev_raidz_combrec()
3654 uint64_t nparity = vdrz->vd_nparity; in vdev_raidz_need_resilver() local
3669 if (s + nparity >= dcols) in vdev_raidz_need_resilver()
3672 for (uint64_t c = 0; c < s + nparity; c++) { in vdev_raidz_need_resilver()
4963 uint64_t nparity; in vdev_raidz_init() local
4964 if (nvlist_lookup_uint64(nv, ZPOOL_CONFIG_NPARITY, &nparity) == 0) { in vdev_raidz_init()
4965 if (nparity == 0 || nparity > VDEV_RAIDZ_MAXPARITY) in vdev_raidz_init()
4972 if (nparity > 1 && spa_version(spa) < SPA_VERSION_RAIDZ2) in vdev_raidz_init()
4974 else if (nparity > 2 && spa_version(spa) < SPA_VERSION_RAIDZ3) in vdev_raidz_init()
4987 nparity = 1; in vdev_raidz_init()
5002 vdrz->vd_nparity = nparity; in vdev_raidz_init()