From 922bc5a037ecf82d3cbad1c9976274f441328274 Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Sun, 16 Jul 2023 23:19:49 -0400 Subject: bcachefs: Make topology repair a normal recovery pass This adds bch2_run_explicit_recovery_pass(), for rewinding recovery and explicitly running a specific recovery pass - this is a more general replacement for how we were running topology repair before. Signed-off-by: Kent Overstreet --- fs/bcachefs/error.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'fs/bcachefs/error.c') diff --git a/fs/bcachefs/error.c b/fs/bcachefs/error.c index 685464b8cce3..39009cf0c448 100644 --- a/fs/bcachefs/error.c +++ b/fs/bcachefs/error.c @@ -27,9 +27,6 @@ bool bch2_inconsistent_error(struct bch_fs *c) void bch2_topology_error(struct bch_fs *c) { - if (!test_bit(BCH_FS_TOPOLOGY_REPAIR_DONE, &c->flags)) - return; - set_bit(BCH_FS_TOPOLOGY_ERROR, &c->flags); if (test_bit(BCH_FS_FSCK_DONE, &c->flags)) bch2_inconsistent_error(c); -- cgit v1.2.3