summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/journal_io.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2022-10-14 01:14:15 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 17:09:43 -0400
commit17fe3b6452f62c0ee353f3b4f0107685cfd6847d (patch)
tree26d114af6287f8cf465f2e81799ac3dbb1db9e5a /fs/bcachefs/journal_io.h
parentbf8f8b20a1e729170493d99a2014c90c5cf5b84b (diff)
downloadlinux-stable-17fe3b6452f62c0ee353f3b4f0107685cfd6847d.tar.gz
linux-stable-17fe3b6452f62c0ee353f3b4f0107685cfd6847d.tar.bz2
linux-stable-17fe3b6452f62c0ee353f3b4f0107685cfd6847d.zip
bcachefs: Improve journal_entry_add()
Prep work for the next patch, to defer journal entry validation: we now track for each replica whether we had a good checksum. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/journal_io.h')
-rw-r--r--fs/bcachefs/journal_io.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/bcachefs/journal_io.h b/fs/bcachefs/journal_io.h
index 1a91f2c0a26c..2f8bbf06b289 100644
--- a/fs/bcachefs/journal_io.h
+++ b/fs/bcachefs/journal_io.h
@@ -8,6 +8,7 @@
*/
struct journal_replay {
struct journal_ptr {
+ bool csum_good;
u8 dev;
u32 bucket;
u32 bucket_offset;
@@ -15,8 +16,7 @@ struct journal_replay {
} ptrs[BCH_REPLICAS_MAX];
unsigned nr_ptrs;
- /* checksum error, but we may want to try using it anyways: */
- bool bad;
+ bool csum_good;
bool ignore;
/* must be last: */
struct jset j;