summaryrefslogtreecommitdiff
path: root/fs/bcachefs/journal_io.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2020-08-24 22:58:26 +0300
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-23 00:08:44 +0300
commitca73852a1341534e2bf00cfbdc853bb3b1095af8 (patch)
treed622b174a30f1e97e09478ca4f51d25eab0d60b3 /fs/bcachefs/journal_io.h
parenta672fb8f5deaa577197e604ad7c6e0380f153211 (diff)
downloadlinux-ca73852a1341534e2bf00cfbdc853bb3b1095af8.tar.xz
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>
Diffstat (limited to 'fs/bcachefs/journal_io.h')
-rw-r--r--fs/bcachefs/journal_io.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/bcachefs/journal_io.h b/fs/bcachefs/journal_io.h
index 72e575f360af..6958ee0f8cf2 100644
--- a/fs/bcachefs/journal_io.h
+++ b/fs/bcachefs/journal_io.h
@@ -9,6 +9,8 @@
struct journal_replay {
struct list_head list;
struct bch_devs_list devs;
+ /* checksum error, but we may want to try using it anyways: */
+ bool bad;
/* must be last: */
struct jset j;
};