diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-11-24 08:54:43 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-11-24 10:30:32 +0300 |
commit | 202a7c292ec65d5a602aa356f4fa4f50ff84cdee (patch) | |
tree | 7e68d4234c74c617eda25195b149c216a921df37 /fs/bcachefs | |
parent | 261af2f1c6b668586325a37df02f904c1c273a7d (diff) | |
download | linux-202a7c292ec65d5a602aa356f4fa4f50ff84cdee.tar.xz |
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.c | 2 |
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); |