bcachefs: fix bch2_write_extent() crc corruption.
authorDaniel Hill <daniel@gluo.nz>
Tue, 11 Oct 2022 08:33:56 +0000 (21:33 +1300)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:44 +0000 (17:09 -0400)
commit2d485df3da368193dafc78be933669d427b7ddf7
treee0c0c4d76c64149bf6acbde2e2847a4304f9962c
parent55b8550d304a1c0884e98d0bb7126d490a96128f
bcachefs: fix bch2_write_extent() crc corruption.

crc.compression_type & nouce gets reset to inside bch2_rechecksum_bio(),
we set it back to the previous values calculated. This fixes
incompressible extents being marked as uncompressed.

Signed-off-by: Daniel Hill <daniel@gluo.nz>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/io.c