From ae2e13d7809d79ea4d7c0cd8ee060b7911012e37 Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Sun, 16 Jul 2023 23:21:17 -0400 Subject: bcachefs: bch2_run_explicit_recovery_pass() This introduces bch2_run_explicit_recovery_pass() and uses it for when fsck detects that we need to re-run dead snaphots cleanup, and makes dead snapshot cleanup more like a normal recovery pass. Signed-off-by: Kent Overstreet --- fs/bcachefs/errcode.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fs/bcachefs/errcode.h') diff --git a/fs/bcachefs/errcode.h b/fs/bcachefs/errcode.h index a759493fee44..adc25c73e715 100644 --- a/fs/bcachefs/errcode.h +++ b/fs/bcachefs/errcode.h @@ -157,7 +157,7 @@ x(BCH_ERR_fsck, fsck_errors_not_fixed) \ x(BCH_ERR_fsck, fsck_repair_unimplemented) \ x(BCH_ERR_fsck, fsck_repair_impossible) \ - x(0, need_snapshot_cleanup) \ + x(0, restart_recovery) \ x(0, need_topology_repair) \ x(0, unwritten_extent_update) \ x(EINVAL, device_state_not_allowed) \ -- cgit v1.2.3