]> git.sesse.net Git - bcachefs-tools-debian/blobdiff - libbcachefs/rebalance.c
Update bcachefs sources to 841a95c29f4c bcachefs: fix userspace build errors
[bcachefs-tools-debian] / libbcachefs / rebalance.c
index 79bd4ad0126521d3719cc16e2a1a96a5420095a8..ee452aa51a26e09a494bc68d94d759380db9588a 100644 (file)
@@ -334,7 +334,7 @@ static int do_rebalance(struct moving_context *ctxt)
        while (!bch2_move_ratelimit(ctxt)) {
                if (!r->enabled) {
                        bch2_moving_ctxt_flush_all(ctxt);
-                       kthread_wait_freezable(c->copy_gc_enabled ||
+                       kthread_wait_freezable(r->enabled ||
                                               kthread_should_stop());
                }