diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2022-10-14 08:14:15 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-23 00:09:43 +0300 |
commit | 17fe3b6452f62c0ee353f3b4f0107685cfd6847d (patch) | |
tree | 26d114af6287f8cf465f2e81799ac3dbb1db9e5a /fs/bcachefs/journal_io.h | |
parent | bf8f8b20a1e729170493d99a2014c90c5cf5b84b (diff) | |
download | linux-17fe3b6452f62c0ee353f3b4f0107685cfd6847d.tar.xz |
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.h | 4 |
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; |