summaryrefslogtreecommitdiff
path: root/libbcache/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbcache/io.c')
-rw-r--r--libbcache/io.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libbcache/io.c b/libbcache/io.c
index a3df3794..9f19ea4b 100644
--- a/libbcache/io.c
+++ b/libbcache/io.c
@@ -625,7 +625,9 @@ static void __bch_write(struct closure *cl)
BKEY_EXTENT_U64s_MAX))
continue_at(cl, bch_write_index, index_update_wq(op));
- b = bch_alloc_sectors_start(c, op->wp, op->nr_replicas,
+ b = bch_alloc_sectors_start(c, op->wp,
+ op->nr_replicas,
+ c->opts.data_replicas_required,
op->alloc_reserve,
(op->flags & BCH_WRITE_ALLOC_NOWAIT) ? NULL : cl);
EBUG_ON(!b);