From: Kent Overstreet Date: Sun, 19 May 2024 21:52:12 +0000 (-0400) Subject: bcachefs: Improve bch2_assert_pos_locked() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=25989f4a9bf5f9bee7ba541de68f34cf406dff38;p=linux.git bcachefs: Improve bch2_assert_pos_locked() Signed-off-by: Kent Overstreet --- diff --git a/fs/bcachefs/btree_iter.c b/fs/bcachefs/btree_iter.c index 5bf98cb8b15da..d3bcb4e4e2306 100644 --- a/fs/bcachefs/btree_iter.c +++ b/fs/bcachefs/btree_iter.c @@ -332,6 +332,8 @@ out: void bch2_assert_pos_locked(struct btree_trans *trans, enum btree_id id, struct bpos pos, bool key_cache) { + bch2_trans_verify_not_unlocked(trans); + struct btree_path *path; struct trans_for_each_path_inorder_iter iter; struct printbuf buf = PRINTBUF;