Commit 5b7fbdcd authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: Fix silent enum conversion error



This changes mark_btree_node_locked() to take an enum
btree_node_locked_type, not a six_lock_type, since BTREE_NODE_UNLOCKED
is -1 which may cause problems converting back and forth to
six_lock_type if short enums are in use.

With this change, we never store BTREE_NODE_UNLOCKED in a six_lock_type
enum.

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 5cfd6977
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment