Commit 57ce8274 authored by Kent Overstreet's avatar Kent Overstreet

bcachefs: Make an assertion more informative

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent e4215d0f
......@@ -2606,7 +2606,10 @@ static void __bch2_trans_iter_init(struct btree_trans *trans,
unsigned depth,
unsigned flags)
{
EBUG_ON(trans->restarted);
if (trans->restarted)
panic("bch2_trans_iter_init(): in transaction restart, %s by %pS\n",
bch2_err_str(trans->restarted),
(void *) trans->last_restarted_ip);
if (flags & BTREE_ITER_ALL_LEVELS)
flags |= BTREE_ITER_ALL_SNAPSHOTS|__BTREE_ITER_ALL_SNAPSHOTS;
......
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