bcachefs: Hacky fixes for device removal
authorKent Overstreet <kent.overstreet@gmail.com>
Sat, 4 Jan 2020 03:38:14 +0000 (22:38 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:34 +0000 (17:08 -0400)
commit31ba2cd33037e1011947b7abbfd70921c735841d
treee384a35b2b00b5aa37b706a47c59cd1181ee2c3d
parent3e548da8f57ef41523f6f7fe72f812116af48ba1
bcachefs: Hacky fixes for device removal

The device remove test was sporadically failing, because we hadn't
finished dropping btree sector counts for the device when
bch2_replicas_gc2() was called - mainly due to in flight journal writes.
We don't yet have a good mechanism for flushing the counts that
correspend to open journal entries yet.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/migrate.c
fs/bcachefs/super.c