bcachefs: traverse_all() shouldn't be restarting the transaction
We're only called by bch2_trans_begin() now. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
This commit is contained in:
parent
1a488e7306
commit
0d32711ef6
@ -1335,15 +1335,6 @@ retry_all:
|
||||
if (ret)
|
||||
goto retry_all;
|
||||
}
|
||||
|
||||
if (hweight64(trans->iters_live) > 1)
|
||||
ret = btree_trans_restart(trans);
|
||||
else
|
||||
trans_for_each_iter(trans, iter)
|
||||
if (iter->flags & BTREE_ITER_KEEP_UNTIL_COMMIT) {
|
||||
ret = btree_trans_restart(trans);
|
||||
break;
|
||||
}
|
||||
out:
|
||||
bch2_btree_cache_cannibalize_unlock(c);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user