diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2025-06-26 19:52:42 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2025-06-30 17:52:46 -0400 |
commit | 3db61cbb523ef2c08d3af07472bbe84cae26667b (patch) | |
tree | 0e82d55ebfe6021c284490c1cf80b5a075830aa6 | |
parent | c06d4985806c41a2d54819e687ba03a1d9859255 (diff) |
bcachefs: -o fix_errors may now be used without -o fsck
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
-rw-r--r-- | fs/bcachefs/error.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/bcachefs/error.c b/fs/bcachefs/error.c index 27caa06225d1..a9a9fe193966 100644 --- a/fs/bcachefs/error.c +++ b/fs/bcachefs/error.c @@ -401,7 +401,8 @@ int bch2_fsck_err_opt(struct bch_fs *c, if (!WARN_ON(err >= ARRAY_SIZE(fsck_flags_extra))) flags |= fsck_flags_extra[err]; - if (test_bit(BCH_FS_in_fsck, &c->flags)) { + if (test_bit(BCH_FS_in_fsck, &c->flags) || + test_bit(BCH_FS_in_recovery, &c->flags)) { if (!(flags & (FSCK_CAN_FIX|FSCK_CAN_IGNORE))) return bch_err_throw(c, fsck_repair_unimplemented); |