Commit 174f930b authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: bkey_ops.min_val_size



This adds a new field to bkey_ops for the minimum size of the value,
which standardizes that check and also enforces the new rule (previously
done somewhat ad-hoc) that we can extend value types by adding new
fields on to the end.

To make that work we do _not_ initialize min_val_size with sizeof,
instead we initialize it to the size of the first version of those
values.

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent ab158fce
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment