bcachefs: Refactor journal code to not use unwritten_idx
authorKent Overstreet <kent.overstreet@gmail.com>
Tue, 1 Mar 2022 00:17:27 +0000 (19:17 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:26 +0000 (17:09 -0400)
commit30ef633a0b46e06860f46bf7df0f5a313e6e1a19
tree8b6ffa6870ea55dad13072acc60ac4b0ef08c99d
parentf0a3a2ccabc5ae1e2c7d588a6a4f77d216b1d4cf
bcachefs: Refactor journal code to not use unwritten_idx

It makes the code more readable if we work off of sequence numbers,
instead of direct indexes into the array of journal buffers.

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