Commit 0d32711e authored by Kent Overstreet's avatar Kent Overstreet Committed by Kent Overstreet

bcachefs: traverse_all() shouldn't be restarting the transaction

We're only called by bch2_trans_begin() now.
Signed-off-by: default avatarKent Overstreet <kent.overstreet@gmail.com>
parent 1a488e73
......@@ -1335,15 +1335,6 @@ static int __btree_iter_traverse_all(struct btree_trans *trans, int ret,
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);
......
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