mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-01-20 09:59:27 -05:00
bcachefs: Switch a BUG_ON() to a panic()
This assert is popping - rarely - in the CI, this will help us track it down from the logs. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
@@ -1174,7 +1174,10 @@ int bch2_btree_path_traverse_one(struct btree_trans *trans,
|
||||
|
||||
path->uptodate = BTREE_ITER_UPTODATE;
|
||||
out:
|
||||
BUG_ON(bch2_err_matches(ret, BCH_ERR_transaction_restart) != !!trans->restarted);
|
||||
if (bch2_err_matches(ret, BCH_ERR_transaction_restart) != !!trans->restarted)
|
||||
panic("ret %s (%i) trans->restarted %s (%i)\n",
|
||||
bch2_err_str(ret), ret,
|
||||
bch2_err_str(trans->restarted), trans->restarted);
|
||||
bch2_btree_path_verify(trans, path);
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user