diff options
author | 2024-01-03 20:34:46 -0500 | |
---|---|---|
committer | 2024-01-05 23:24:20 -0500 | |
commit | a64a37338d49a79647d332f1f510daafffeab4ad (patch) | |
tree | 41cb8fa8552f9753b1a413080952105ecf326bd0 | |
parent | bcachefs: add missing bch2_latency_acct() call (diff) | |
download | linux-a64a37338d49a79647d332f1f510daafffeab4ad.tar.gz linux-a64a37338d49a79647d332f1f510daafffeab4ad.tar.bz2 linux-a64a37338d49a79647d332f1f510daafffeab4ad.zip |
bcachefs: Don't autofix errors we can't fix
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 e8200cad3ab8..d32c8bebe46c 100644 --- a/fs/bcachefs/error.c +++ b/fs/bcachefs/error.c @@ -179,7 +179,8 @@ int bch2_fsck_err(struct bch_fs *c, struct printbuf buf = PRINTBUF, *out = &buf; int ret = -BCH_ERR_fsck_ignore; - if (test_bit(err, c->sb.errors_silent)) + if ((flags & FSCK_CAN_FIX) && + test_bit(err, c->sb.errors_silent)) return -BCH_ERR_fsck_fix; bch2_sb_error_count(c, err); |