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/error.h | |
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/error.h')
-rw-r--r-- | fs/bcachefs/error.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/fs/bcachefs/error.h b/fs/bcachefs/error.h index edf12443822c..7ce9540052e5 100644 --- a/fs/bcachefs/error.h +++ b/fs/bcachefs/error.h @@ -91,13 +91,6 @@ do { \ * be able to repair: */ -enum fsck_err_opts { - FSCK_OPT_EXIT, - FSCK_OPT_YES, - FSCK_OPT_NO, - FSCK_OPT_ASK, -}; - struct fsck_err_state { struct list_head list; const char *fmt; |