diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2018-07-23 07:52:00 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:08:08 -0400 |
commit | 9c859dc91b5a85bab4dcb72087528c6cfd7207b4 (patch) | |
tree | dec16b4cf79414c55ef5b6e44f2c41cb9df6cacc /fs/bcachefs/journal_types.h | |
parent | 60476b14b4c4e7a733047374aa135fb16c6ab340 (diff) | |
download | linux-9c859dc91b5a85bab4dcb72087528c6cfd7207b4.tar.gz linux-9c859dc91b5a85bab4dcb72087528c6cfd7207b4.tar.bz2 linux-9c859dc91b5a85bab4dcb72087528c6cfd7207b4.zip |
bcachefs: Assorted journal refactoring
Also improve error reporting - only return an error from
bch2_journal_flush_seq() if we had an error writing that entry (i.e. not
if there was an error with a newer entry).
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/journal_types.h')
-rw-r--r-- | fs/bcachefs/journal_types.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/bcachefs/journal_types.h b/fs/bcachefs/journal_types.h index dae8b8a65d75..8502a930a05e 100644 --- a/fs/bcachefs/journal_types.h +++ b/fs/bcachefs/journal_types.h @@ -151,7 +151,8 @@ struct journal { /* Sequence number of most recent journal entry (last entry in @pin) */ atomic64_t seq; - /* last_seq from the most recent journal entry written */ + /* seq, last_seq from the most recent journal entry successfully written */ + u64 seq_ondisk; u64 last_seq_ondisk; /* |