Skip to content

Commit 202a7c2

Browse files
author
Kent Overstreet
committed
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>
1 parent 261af2f commit 202a7c2

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

fs/bcachefs/buckets.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2091,8 +2091,6 @@ int bch2_dev_buckets_resize(struct bch_fs *c, struct bch_dev *ca, u64 nbuckets)
20912091
bucket_gens->first_bucket = ca->mi.first_bucket;
20922092
bucket_gens->nbuckets = nbuckets;
20932093

2094-
bch2_copygc_stop(c);
2095-
20962094
if (resize) {
20972095
down_write(&c->gc_lock);
20982096
down_write(&ca->bucket_lock);

0 commit comments

Comments
 (0)