summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-11-24 00:54:43 -0500
committerKent Overstreet <kent.overstreet@linux.dev>2023-11-24 02:30:32 -0500
commit202a7c292ec65d5a602aa356f4fa4f50ff84cdee (patch)
tree7e68d4234c74c617eda25195b149c216a921df37 /fs/bcachefs
parent261af2f1c6b668586325a37df02f904c1c273a7d (diff)
downloadlinux-stable-202a7c292ec65d5a602aa356f4fa4f50ff84cdee.tar.gz
linux-stable-202a7c292ec65d5a602aa356f4fa4f50ff84cdee.tar.bz2
linux-stable-202a7c292ec65d5a602aa356f4fa4f50ff84cdee.zip
bcachefs: Don't stop copygc thread on device resize
copygc no longer has to scan the buckets, so it's no longer a problem if the number of buckets is changing while it's running. This also fixes a bug where we forgot to restart copygc. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs')
-rw-r--r--fs/bcachefs/buckets.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/bcachefs/buckets.c b/fs/bcachefs/buckets.c
index 58d8c6ffd955..61e4cc09ad83 100644
--- a/fs/bcachefs/buckets.c
+++ b/fs/bcachefs/buckets.c
@@ -2091,8 +2091,6 @@ int bch2_dev_buckets_resize(struct bch_fs *c, struct bch_dev *ca, u64 nbuckets)
bucket_gens->first_bucket = ca->mi.first_bucket;
bucket_gens->nbuckets = nbuckets;
- bch2_copygc_stop(c);
-
if (resize) {
down_write(&c->gc_lock);
down_write(&ca->bucket_lock);