]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bcachefs: Fix bch2_read_retry_nodecode()
authorKent Overstreet <kent.overstreet@linux.dev>
Sat, 29 Jun 2024 00:40:24 +0000 (20:40 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sat, 29 Jun 2024 00:47:04 +0000 (20:47 -0400)
commit1539bdf516601cf05ab11cbc6ddbfc31d37d74f7
tree0002f2fcf3211b36eb6766568b420a97ee612a1a
parent44ec5990357b9ebb8e5e88bb4f98a2746b938fab
bcachefs: Fix bch2_read_retry_nodecode()

BCH_READ_NODECODE mode - used by the move paths - really wants to use
only the original rbio, but the retry path really wants to clone - oof.

Make sure to copy the crc of the pointer we read from back to the
original rbio, or we'll see spurious checksum errors later.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/io_read.c