summaryrefslogtreecommitdiff
path: root/fs/bcachefs/disk_groups.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-09-10 04:14:54 +0300
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-23 00:10:12 +0300
commit5b7fbdcd5b04b618178d6339e36435997ef6b086 (patch)
tree6873edae81c0342a0c5eb6d51eee3a4cf19f486b /fs/bcachefs/disk_groups.h
parent5cfd69775eb5460ef78bb5034a37eb0dc52ab65d (diff)
downloadlinux-5b7fbdcd5b04b618178d6339e36435997ef6b086.tar.xz
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: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/disk_groups.h')
0 files changed, 0 insertions, 0 deletions