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:
Kent Overstreet 2021-07-27 22:32:05 -04:00 committed by Kent Overstreet
parent 1a488e7306
commit 0d32711ef6

View File

@ -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);