diff options
author | 2023-11-12 21:46:52 -0500 | |
---|---|---|
committer | 2023-11-14 23:44:44 -0500 | |
commit | 62d73dfc44d54c97e0df6b947f0bccf6c4b8030e (patch) | |
tree | 7a7adc06b4bc0a8d63bb7c9cc6194111f9de64d0 | |
parent | bcachefs: Fix bch2_check_nlinks() for snapshots (diff) | |
download | linux-62d73dfc44d54c97e0df6b947f0bccf6c4b8030e.tar.gz linux-62d73dfc44d54c97e0df6b947f0bccf6c4b8030e.tar.bz2 linux-62d73dfc44d54c97e0df6b947f0bccf6c4b8030e.zip |
bcachefs: Fix no_data_io mode checksum check
In no_data_io mode, we expect data checksums to be wrong - don't want to
spew the log with them.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
-rw-r--r-- | fs/bcachefs/io_write.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/io_write.c b/fs/bcachefs/io_write.c index f02b3f7d26a0..d704a8f829c8 100644 --- a/fs/bcachefs/io_write.c +++ b/fs/bcachefs/io_write.c @@ -795,7 +795,7 @@ static int bch2_write_decrypt(struct bch_write_op *op) * checksum: */ csum = bch2_checksum_bio(c, op->crc.csum_type, nonce, &op->wbio.bio); - if (bch2_crc_cmp(op->crc.csum, csum)) + if (bch2_crc_cmp(op->crc.csum, csum) && !c->opts.no_data_io) return -EIO; ret = bch2_encrypt_bio(c, op->crc.csum_type, nonce, &op->wbio.bio); |