mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 17:13:52 +02:00
bcachefs: Add a debug assert
Chasing down a strange locking bug. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
84a37cbf62
commit
845cffed0d
|
|
@ -1110,6 +1110,9 @@ static int btree_path_traverse_one(struct btree_trans *trans,
|
|||
|
||||
path->level = btree_path_up_until_good_node(trans, path, 0);
|
||||
|
||||
EBUG_ON(btree_path_node(path, path->level) &&
|
||||
!btree_node_locked(path, path->level));
|
||||
|
||||
/*
|
||||
* Note: path->nodes[path->level] may be temporarily NULL here - that
|
||||
* would indicate to other code that we got to the end of the btree,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user