bcachefs: Interior known are required to have known key types
authorKent Overstreet <kent.overstreet@linux.dev>
Sun, 14 Apr 2024 03:59:28 +0000 (23:59 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 14 Apr 2024 22:01:12 +0000 (18:01 -0400)
commitd789e9a7d5e2799f4d5425b0b620210d2fcad529
tree7d0227d17add391c222f8a94d6c94d1a069ffb44
parentbceb86be9e970bc6d77bfd1f8e5272d9a2007c16
bcachefs: Interior known are required to have known key types

For forwards compatibilyt, we allow bkeys of unknown type in leaf nodes;
we can simply ignore metadata we don't understand. Pointers to btree
nodes must always be of known types, howwever.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/bkey_methods.c