diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-07-12 06:47:29 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-23 00:10:07 +0300 |
commit | a0f8faea5f47d6e18253225e8f2f88cdc49d27d8 (patch) | |
tree | cf2b0b930c403173fc70e39313fd4d1348cf428c /fs/bcachefs/btree_gc.c | |
parent | 9f343e24f541bef3d5f081925eae5734c2c39c28 (diff) | |
download | linux-a0f8faea5f47d6e18253225e8f2f88cdc49d27d8.tar.xz |
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 <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 6000b09dec26..edea6bb66253 100644 --- a/fs/bcachefs/btree_gc.c +++ b/fs/bcachefs/btree_gc.c @@ -1808,7 +1808,7 @@ again: if (IS_ENABLED(CONFIG_BCACHEFS_DEBUG) || (BCH_SB_HAS_TOPOLOGY_ERRORS(c->disk_sb.sb) && c->curr_recovery_pass <= BCH_RECOVERY_PASS_check_allocations && - c->opts.fix_errors != FSCK_OPT_NO)) { + c->opts.fix_errors != FSCK_FIX_no)) { bch_info(c, "Starting topology repair pass"); ret = bch2_repair_topology(c); if (ret) |