summaryrefslogtreecommitdiff
path: root/libbcachefs/rebalance.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2020-10-23 18:43:51 -0400
committerKent Overstreet <kent.overstreet@gmail.com>2020-10-23 18:43:51 -0400
commit37270fc79cbe4ab62001893eebd16b6fde4b621b (patch)
treec3be04eb38abca870b40c3f110d5f16a65359730 /libbcachefs/rebalance.c
parent8a440895bf31ad7c45f6ad7d5766c6b83e2a7f3d (diff)
Update bcachefs sources to ff83eed5f5 bcachefs: Fix bch2_mark_stripe()
Diffstat (limited to 'libbcachefs/rebalance.c')
-rw-r--r--libbcachefs/rebalance.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libbcachefs/rebalance.c b/libbcachefs/rebalance.c
index 56a1f761..44d2651b 100644
--- a/libbcachefs/rebalance.c
+++ b/libbcachefs/rebalance.c
@@ -73,6 +73,7 @@ static enum data_cmd rebalance_pred(struct bch_fs *c, void *arg,
{
if (__bch2_rebalance_pred(c, k, io_opts) >= 0) {
data_opts->target = io_opts->background_target;
+ data_opts->nr_replicas = 1;
data_opts->btree_insert_flags = 0;
return DATA_ADD_REPLICAS;
} else {