mirror of
https://github.com/torvalds/linux
synced 2024-10-03 09:48:02 +00:00
bcachefs: Rename nofsck opt to fsck
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
6bdbfa87a8
commit
02f1a96c13
|
@ -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 &&
|
||||
|
|
|
@ -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) \
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue