bcachefs: Refactor bch_sb_field_ops handling
authorKent Overstreet <kent.overstreet@linux.dev>
Fri, 7 Jul 2023 00:11:36 +0000 (20:11 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:10:06 +0000 (17:10 -0400)
commit236b68da5017b5336b332f941323a5bc450594b3
treeaf8a2c2b5529ad0399d463cfc29be8c5a44147a2
parent183e9c430ea9775fdd1f7097f309ef61471562fc
bcachefs: Refactor bch_sb_field_ops handling

This changes bch_sb_field_ops lookup to match how bkey_ops now works;
for an unknown field type we return an empty ops struct.

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