bcachefs: Fix btree_node_type enum
authorKent Overstreet <kent.overstreet@linux.dev>
Fri, 20 Oct 2023 04:01:53 +0000 (00:01 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Tue, 31 Oct 2023 16:18:37 +0000 (12:18 -0400)
commit50a38ca1baace3dc66027ad41393917b05318b14
tree757b72d26e0547974d89bc579161cc44d5f84be5
parent88dfe193bd2abd08926c1a0d48b770bb68ac8ccb
bcachefs: Fix btree_node_type enum

More forwards compatibility fixups: having BKEY_TYPE_btree at the end of
the enum conflicts with unnkown btree IDs, this shifts BKEY_TYPE_btree
to slot 0 and fixes things up accordingly.

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