bcachefs: Kill JOURNAL_NEED_WRITE
authorKent Overstreet <kent.overstreet@gmail.com>
Fri, 25 Feb 2022 15:28:20 +0000 (10:28 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:26 +0000 (17:09 -0400)
commitfbec3b8800ac8244ce751d0ba5b83d94ee48fc76
tree7dc294ade316a64524431c7917c62e79e3185699
parent506bac7e59d93cfd883dab0697ed91850f319be6
bcachefs: Kill JOURNAL_NEED_WRITE

This replaces the journal flag JOURNAL_NEED_WRITE with per-journal buf
state - more explicit, and solving a race in the old code that would
lead to entries being opened and written unnecessarily.

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