Commit 71fdc0b5 authored by Kent Overstreet's avatar Kent Overstreet

bcachefs: btree_node_unlock() assert

we have a separate helper for releasing write locks
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent dd3995a6
......@@ -136,6 +136,7 @@ static inline void btree_node_unlock(struct btree_trans *trans,
int lock_type = btree_node_locked_type(path, level);
EBUG_ON(level >= BTREE_MAX_DEPTH);
EBUG_ON(lock_type == BTREE_NODE_WRITE_LOCKED);
if (lock_type != BTREE_NODE_UNLOCKED) {
six_unlock_type(&path->l[level].b->c.lock, lock_type);
......
Markdown is supported
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