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

Function vdev_draid_permute_id

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

Source from the content-addressed store, hash-verified

566}
567
568static inline uint64_t
569vdev_draid_permute_id(vdev_draid_config_t *vdc,
570 uint8_t *base, uint64_t iter, uint64_t index)
571{
572 return ((base[index] + iter) % vdc->vdc_children);
573}
574
575/*
576 * Return the asize which is the psize rounded up to a full group width.

Callers 5

vdev_draid_map_alloc_rowFunction · 0.85
vdev_draid_group_missingFunction · 0.85
vdev_draid_xlateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected