* Given an offset into a dRAID return the next group width aligned offset * which can be used to start an allocation. */
| 1347 | * which can be used to start an allocation. |
| 1348 | */ |
| 1349 | static uint64_t |
| 1350 | vdev_draid_get_astart(vdev_t *vd, const uint64_t start) |
| 1351 | { |
| 1352 | vdev_draid_config_t *vdc = vd->vdev_tsd; |
| 1353 | |
| 1354 | ASSERT3P(vd->vdev_ops, ==, &vdev_draid_ops); |
| 1355 | |
| 1356 | return (roundup(start, vdc->vdc_groupwidth << vd->vdev_ashift)); |
| 1357 | } |
| 1358 | |
| 1359 | /* |
| 1360 | * Allocatable space for dRAID is (children - nspares) * sizeof(smallest child) |
no outgoing calls
no test coverage detected