diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2018-11-03 21:52:52 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:08:11 -0400 |
commit | 02f1a96c135a7c99518261bf8d244091416c30c6 (patch) | |
tree | b81aa420f995b25f6e2d452fe8aa5998f5c23a97 | |
parent | 6bdbfa87a832c0d3766e1b680729fede21eca7dc (diff) |
bcachefs: Rename nofsck opt to fsck
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
-rw-r--r-- | fs/bcachefs/fsck.c | 2 | ||||
-rw-r--r-- | fs/bcachefs/opts.h | 4 | ||||
-rw-r--r-- | fs/bcachefs/recovery.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/fs/bcachefs/fsck.c b/fs/bcachefs/fsck.c index 99852e0eb22f..7e08592253a6 100644 --- a/fs/bcachefs/fsck.c +++ b/fs/bcachefs/fsck.c @@ -1465,7 +1465,7 @@ static int bch2_fsck_walk_inodes_only(struct bch_fs *c) int bch2_fsck(struct bch_fs *c) { - if (!c->opts.nofsck) + if (c->opts.fsck) return bch2_fsck_full(c); if (!c->sb.clean && diff --git a/fs/bcachefs/opts.h b/fs/bcachefs/opts.h index 01f1cb53eb5f..52fb9781d933 100644 --- a/fs/bcachefs/opts.h +++ b/fs/bcachefs/opts.h @@ -153,9 +153,9 @@ enum opt_type { BCH_OPT(journal_flush_disabled, u8, OPT_RUNTIME, \ OPT_BOOL(), \ NO_SB_OPT, false) \ - BCH_OPT(nofsck, u8, OPT_MOUNT, \ + BCH_OPT(fsck, u8, OPT_MOUNT, \ OPT_BOOL(), \ - NO_SB_OPT, false) \ + NO_SB_OPT, true) \ BCH_OPT(fix_errors, u8, OPT_MOUNT, \ OPT_BOOL(), \ NO_SB_OPT, false) \ diff --git a/fs/bcachefs/recovery.c b/fs/bcachefs/recovery.c index 6d603654d150..2fd68a39d76a 100644 --- a/fs/bcachefs/recovery.c +++ b/fs/bcachefs/recovery.c @@ -152,7 +152,7 @@ int bch2_fs_recovery(struct bch_fs *c) bch_info(c, "recovering from clean shutdown, journal seq %llu", le64_to_cpu(clean->journal_seq)); - if (!clean || !c->opts.nofsck) { + if (!clean || c->opts.fsck) { ret = bch2_journal_read(c, &journal); if (ret) goto err; |