bcachefs: Restore journal write point at startup
authorKent Overstreet <kent.overstreet@gmail.com>
Tue, 15 Mar 2022 06:41:21 +0000 (02:41 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:28 +0000 (17:09 -0400)
commit062afcbae3b269a7d01cf5087df92d5bd8732012
treea9bc997e3c2ba9f9e9267a50a3f29717ff9d576c
parent91d961badfd123b6759488bc4aa7a4d014b739f1
bcachefs: Restore journal write point at startup

This patch tweaks the journal recovery path so that we start writing
right after where we left off, instead of the next empty bucket. This is
partly prep work for supporting zoned devices, but it's also good to do
in general to avoid the journal completely filling up and getting stuck.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
fs/bcachefs/journal_io.c