commit | 174f930b8e1cad3915819a46bb20da214f68f2b5 | [log] [tgz] |
---|---|---|
author | Kent Overstreet <kent.overstreet@linux.dev> | Sat Apr 29 13:24:18 2023 -0400 |
committer | Kent Overstreet <kent.overstreet@linux.dev> | Sun Oct 22 17:10:00 2023 -0400 |
tree | 413eb321e97d3184f68716c8df8a4eef9c1e5b44 | |
parent | ab158fce47220df20f0fe2360767227328f6765b [diff] |
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: Kent Overstreet <kent.overstreet@linux.dev>