bcachefs: Don't stop copygc thread on device resize
authorKent Overstreet <kent.overstreet@linux.dev>
Fri, 24 Nov 2023 05:54:43 +0000 (00:54 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Fri, 24 Nov 2023 07:30:32 +0000 (02:30 -0500)
commit202a7c292ec65d5a602aa356f4fa4f50ff84cdee
tree7e68d4234c74c617eda25195b149c216a921df37
parent261af2f1c6b668586325a37df02f904c1c273a7d
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>
fs/bcachefs/buckets.c