diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2021-05-07 23:32:26 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:02 -0400 |
commit | 1784d43a88ecf0da66514f4b7f0f52b4182ef81c (patch) | |
tree | be21ccd70b36a4f3c361f9a143879c2057849ee0 /fs/bcachefs/journal_types.h | |
parent | ac1019d32b31c8bca6e0e5f86b403e91a1da5786 (diff) | |
download | linux-stable-1784d43a88ecf0da66514f4b7f0f52b4182ef81c.tar.gz linux-stable-1784d43a88ecf0da66514f4b7f0f52b4182ef81c.tar.bz2 linux-stable-1784d43a88ecf0da66514f4b7f0f52b4182ef81c.zip |
bcachefs: Fix usage of last_seq + encryption
jset->last_seq is in the region that's encrypted - on journal write
completion, we were using it and getting garbage. This patch shadows it
to fix.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
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 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/bcachefs/journal_types.h b/fs/bcachefs/journal_types.h index 6e2a2d6b8346..b4e4d5e0bc93 100644 --- a/fs/bcachefs/journal_types.h +++ b/fs/bcachefs/journal_types.h @@ -23,6 +23,7 @@ struct journal_buf { __BKEY_PADDED(key, BCH_REPLICAS_MAX); struct closure_waitlist wait; + u64 last_seq; /* copy of data->last_seq */ unsigned buf_size; /* size in bytes of @data */ unsigned sectors; /* maximum size for current entry */ |