diff --git a/fs/bcachefs/btree_iter.c b/fs/bcachefs/btree_iter.c index 929bf20c1029..d1a03fdba9ce 100644 --- a/fs/bcachefs/btree_iter.c +++ b/fs/bcachefs/btree_iter.c @@ -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);