diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-04-27 00:47:09 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-23 00:10:00 +0300 |
commit | 6b52bcde4a2f3c073151356bf960596d2da9716e (patch) | |
tree | d06b9b91c7989ce93f7c152896de0a47c337d981 /fs/bcachefs | |
parent | a0668d77f04dd95a394cf421125a2cfd6ab68fad (diff) | |
download | linux-6b52bcde4a2f3c073151356bf960596d2da9716e.tar.xz |
bcachefs: Always run topology error when CONFIG_BCACHEFS_DEBUG=y
Improved test coverage.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs')
-rw-r--r-- | fs/bcachefs/btree_gc.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/fs/bcachefs/btree_gc.c b/fs/bcachefs/btree_gc.c index d9f1e011ed71..eedcc09bacff 100644 --- a/fs/bcachefs/btree_gc.c +++ b/fs/bcachefs/btree_gc.c @@ -1799,9 +1799,10 @@ again: bch2_mark_superblocks(c); - if (BCH_SB_HAS_TOPOLOGY_ERRORS(c->disk_sb.sb) && - !test_bit(BCH_FS_INITIAL_GC_DONE, &c->flags) && - c->opts.fix_errors != FSCK_OPT_NO) { + if (IS_ENABLED(CONFIG_BCACHEFS_DEBUG) || + (BCH_SB_HAS_TOPOLOGY_ERRORS(c->disk_sb.sb) && + !test_bit(BCH_FS_INITIAL_GC_DONE, &c->flags) && + c->opts.fix_errors != FSCK_OPT_NO)) { bch_info(c, "Starting topology repair pass"); ret = bch2_repair_topology(c); if (ret) |