bcachefs: Improvements to the journal read error paths
authorKent Overstreet <kent.overstreet@gmail.com>
Mon, 24 Aug 2020 19:58:26 +0000 (15:58 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:44 +0000 (17:08 -0400)
commitca73852a1341534e2bf00cfbdc853bb3b1095af8
treed622b174a30f1e97e09478ca4f51d25eab0d60b3
parenta672fb8f5deaa577197e604ad7c6e0380f153211
bcachefs: Improvements to the journal read error paths

 - Print out more information in error messages
 - On checksum error, keep the journal entry but mark it bad so that we
   can prefer entries from other devices that don't have bad checksums

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/journal_io.c
fs/bcachefs/journal_io.h