Skip to content

Commit 25989f4

Browse files
author
Kent Overstreet
committed
bcachefs: Improve bch2_assert_pos_locked()
Signed-off-by: Kent Overstreet <[email protected]>
1 parent bcfbaea commit 25989f4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

fs/bcachefs/btree_iter.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,8 @@ static int bch2_btree_iter_verify_ret(struct btree_iter *iter, struct bkey_s_c k
332332
void bch2_assert_pos_locked(struct btree_trans *trans, enum btree_id id,
333333
struct bpos pos, bool key_cache)
334334
{
335+
bch2_trans_verify_not_unlocked(trans);
336+
335337
struct btree_path *path;
336338
struct trans_for_each_path_inorder_iter iter;
337339
struct printbuf buf = PRINTBUF;

0 commit comments

Comments
 (0)