Commit 25989f4a authored by Kent Overstreet's avatar Kent Overstreet

bcachefs: Improve bch2_assert_pos_locked()

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent bcfbaea8
...@@ -332,6 +332,8 @@ static int bch2_btree_iter_verify_ret(struct btree_iter *iter, struct bkey_s_c k ...@@ -332,6 +332,8 @@ static int bch2_btree_iter_verify_ret(struct btree_iter *iter, struct bkey_s_c k
void bch2_assert_pos_locked(struct btree_trans *trans, enum btree_id id, void bch2_assert_pos_locked(struct btree_trans *trans, enum btree_id id,
struct bpos pos, bool key_cache) struct bpos pos, bool key_cache)
{ {
bch2_trans_verify_not_unlocked(trans);
struct btree_path *path; struct btree_path *path;
struct trans_for_each_path_inorder_iter iter; struct trans_for_each_path_inorder_iter iter;
struct printbuf buf = PRINTBUF; struct printbuf buf = PRINTBUF;
......
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