summaryrefslogtreecommitdiff
path: root/libbcache/io.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2017-03-09 08:27:30 -0900
committerKent Overstreet <kent.overstreet@gmail.com>2017-03-09 09:14:11 -0900
commitac1b32acb4ca8c59c0e4911a8d3b27fd72dc54af (patch)
treee73a6ea5ddb6f3ece6a3e6c069ffa9ecc5e1ee44 /libbcache/io.c
parenta17f7bcec7ed810a247c24e56229af8f43a9a6ae (diff)
cmd_device_fail
Add a comamnd for setting a device as failed, update bcache sources
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);