diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2020-08-24 21:58:26 +0200 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 23:08:44 +0200 |
commit | ca73852a1341534e2bf00cfbdc853bb3b1095af8 (patch) | |
tree | d622b174a30f1e97e09478ca4f51d25eab0d60b3 /fs/bcachefs/journal_io.h | |
parent | bcachefs: Make sure to go rw if lazy in fsck (diff) | |
download | linux-ca73852a1341534e2bf00cfbdc853bb3b1095af8.tar.xz linux-ca73852a1341534e2bf00cfbdc853bb3b1095af8.zip |
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.h | 2 |
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; }; |