bcachefs: Fix starting copygc when already started
authorKent Overstreet <kent.overstreet@gmail.com>
Fri, 24 May 2019 18:45:33 +0000 (14:45 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:22 +0000 (17:08 -0400)
commit5884fddfe732183aa2be4d11444543dfae6e044b
tree2cd10e953943dbdb761d85f3b79b282798682222
parent37dd783474d07f8aa210ecf5cc82fd900417eb8b
bcachefs: Fix starting copygc when already started

We can sometimes call bch2_dev_read_write() when the device is already
RW (in error paths).

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/movinggc.c