diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-08-04 03:57:06 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-23 00:10:09 +0300 |
commit | 0ed4ca146efda60057782ccda6dc056bf538cc75 (patch) | |
tree | bfef9b68303b7cc6a959bb4cb2b9b91f4837cd7a /fs/bcachefs/btree_gc.c | |
parent | ad52bac251589cdcd206bfec46d670ba00e6edab (diff) | |
download | linux-0ed4ca146efda60057782ccda6dc056bf538cc75.tar.xz |
bcachefs: Ensure topology repair runs
This fixes should_restart_for_topology_repair() - previously it was
returning false if the btree io path had already seleceted topology
repair to run, even if it hadn't run yet.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/btree_gc.c')
-rw-r--r-- | fs/bcachefs/btree_gc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/btree_gc.c b/fs/bcachefs/btree_gc.c index 43e6222f124d..3f5b4d8ee4a5 100644 --- a/fs/bcachefs/btree_gc.c +++ b/fs/bcachefs/btree_gc.c @@ -43,7 +43,7 @@ static bool should_restart_for_topology_repair(struct bch_fs *c) { return c->opts.fix_errors != FSCK_FIX_no && - !(c->recovery_passes_explicit & BIT_ULL(BCH_RECOVERY_PASS_check_topology)); + !(c->recovery_passes_complete & BIT_ULL(BCH_RECOVERY_PASS_check_topology)); } static inline void __gc_pos_set(struct bch_fs *c, struct gc_pos new_pos) |