bcachefs: Fix usage of last_seq + encryption
authorKent Overstreet <kent.overstreet@gmail.com>
Sat, 8 May 2021 03:32:26 +0000 (23:32 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:02 +0000 (17:09 -0400)
commit1784d43a88ecf0da66514f4b7f0f52b4182ef81c
treebe21ccd70b36a4f3c361f9a143879c2057849ee0
parentac1019d32b31c8bca6e0e5f86b403e91a1da5786
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>
fs/bcachefs/journal.c
fs/bcachefs/journal_io.c
fs/bcachefs/journal_types.h