From 6d09cd7766823f952236cf0a63844e9f266a671f Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Wed, 8 Nov 2017 21:12:38 -0900 Subject: [PATCH] Update bcachefs sources to 2679158d6e bcachefs: fix allocation + replication --- .bcachefs_revision | 2 +- libbcachefs/alloc.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.bcachefs_revision b/.bcachefs_revision index 47478b73..1e6e7905 100644 --- a/.bcachefs_revision +++ b/.bcachefs_revision @@ -1 +1 @@ -0415b63b198ccf8bf5eee3af73accd60e94ad63a +2679158d6e268d1bbcebda4f2000a24683ae06e0 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: