summaryrefslogtreecommitdiff
path: root/libbcachefs/alloc.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2017-11-08 21:12:38 -0900
committerKent Overstreet <kent.overstreet@gmail.com>2017-11-08 21:12:38 -0900
commit6d09cd7766823f952236cf0a63844e9f266a671f (patch)
treec5c6681dd3018dad86840d0600b50513363688ca /libbcachefs/alloc.c
parent097fd2a5e602116e9378a5ae5a7b5128ef004c2d (diff)
Update bcachefs sources to 2679158d6e bcachefs: fix allocation + replication
Diffstat (limited to 'libbcachefs/alloc.c')
-rw-r--r--libbcachefs/alloc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libbcachefs/alloc.c b/libbcachefs/alloc.c
index 1c5b2e49..09cb6fb2 100644
--- a/libbcachefs/alloc.c
+++ b/libbcachefs/alloc.c
@@ -1147,6 +1147,8 @@ static enum bucket_alloc_ret __bch2_bucket_alloc_set(struct bch_fs *c,
ca->mi.bucket_size);
bch2_wp_rescale(c, ca, wp);
+ __clear_bit(ca->dev_idx, devs->d);
+
/*
* open_bucket_add_buckets expects new pointers at the head of
* the list: