bcachefs: Allow for unknown key types
authorKent Overstreet <kent.overstreet@linux.dev>
Thu, 6 Jul 2023 23:23:27 +0000 (19:23 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:10:05 +0000 (17:10 -0400)
commit183e9c430ea9775fdd1f7097f309ef61471562fc
tree604f1353c1c29609c5012e15094e7a83b21a8b38
parentfaa6cb6c13c7223240366ebbf0217a6191fbfc32
bcachefs: Allow for unknown key types

This adds a new helper for lookups bkey_ops for a given key type, which
returns a null bkey_ops for unknown key types; various bkey_ops users
are tweaked as well to handle unknown key types.

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