projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db18ef1
)
bcachefs: Fix no_data_io mode checksum check
author
Kent Overstreet
<kent.overstreet@linux.dev>
Mon, 13 Nov 2023 02:46:52 +0000
(21:46 -0500)
committer
Kent Overstreet
<kent.overstreet@linux.dev>
Wed, 15 Nov 2023 04:44:44 +0000
(23:44 -0500)
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>
fs/bcachefs/io_write.c
patch
|
blob
|
history
diff --git
a/fs/bcachefs/io_write.c
b/fs/bcachefs/io_write.c
index f02b3f7d26a016594c3de2a8f25b0006638b91c2..d704a8f829c8a7fa3db1cc481857dd431b67190b 100644
(file)
--- 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);