From a0f8faea5f47d6e18253225e8f2f88cdc49d27d8 Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Tue, 11 Jul 2023 23:47:29 -0400 Subject: bcachefs: fix_errors option is now a proper enum Before, it was parsed as a bool but internally it was really an enum: this lets us pass in all the possible values. But we special case the option parsing: no supplied value is parsed as FSCK_FIX_yes, to match the previous behaviour. Signed-off-by: Kent Overstreet --- fs/bcachefs/recovery.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fs/bcachefs/recovery.c') diff --git a/fs/bcachefs/recovery.c b/fs/bcachefs/recovery.c index c46297bd1cf9..63b385d8886a 100644 --- a/fs/bcachefs/recovery.c +++ b/fs/bcachefs/recovery.c @@ -1175,7 +1175,7 @@ static void check_version_upgrade(struct bch_fs *c) prt_str(&buf, "fsck required"); c->recovery_passes_explicit |= recovery_passes; - c->opts.fix_errors = FSCK_OPT_YES; + c->opts.fix_errors = FSCK_FIX_yes; } bch_info(c, "%s", buf.buf); -- cgit v1.2.3