]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: EC optimizations: additional types for EC
authorBill Scales <bill_scales@uk.ibm.com>
Sun, 23 Mar 2025 14:20:33 +0000 (14:20 +0000)
committerBill Scales <bill_scales@uk.ibm.com>
Mon, 7 Apr 2025 14:00:55 +0000 (15:00 +0100)
commitc1ca6f485f6b874595eddb20afda839e5c2a4251
treec2cdae092efb48cbc0c65938c10d6e7b07a3243d
parent9aacbd1de3cb69f178fd13fcf4190465b1d29713
osd: EC optimizations: additional types for EC

Add some extra types required by the EC optimizations code:

raw_shard_id_t is an equivalent type to shard_id_t but is used
for storing raw shards. Strong typing prevents bugs where code
forgets to translate between the two types.

shard_id_map is a mini_flat_map indexed by shard_id_t which will
be used by the EC optimizations I/O path to track updates to
each shard.

shard_id_set is a bitset_set of shard_id_t which is a compact
and fast way of storing a set of shards involved in an EC
operation.

Signed-off-by: Bill Scales <bill_scales@uk.ibm.com>
src/osd/ECTypes.h