summaryrefslogtreecommitdiff
path: root/libbcachefs
diff options
context:
space:
mode:
Diffstat (limited to 'libbcachefs')
-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: