mirror of
https://github.com/torvalds/linux.git
synced 2026-06-03 20:14:06 +02:00
bcachefs: Make an assertion more informative
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
e4215d0fec
commit
57ce827442
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user