MCPcopy Create free account
hub / github.com/F-Stack/f-stack / vdev_draid_get_astart

Function vdev_draid_get_astart

freebsd/contrib/openzfs/module/zfs/vdev_draid.c:1349–1357  ·  view source on GitHub ↗

* Given an offset into a dRAID return the next group width aligned offset * which can be used to start an allocation. */

Source from the content-addressed store, hash-verified

1347 * which can be used to start an allocation.
1348 */
1349static uint64_t
1350vdev_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)

Callers 6

vdev_draid_group_missingFunction · 0.85
vdev_draid_rebuild_asizeFunction · 0.85
vdev_draid_metaslab_initFunction · 0.85
vdev_draid_io_startFunction · 0.85
vdev_draid_xlateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected