bcachefs: Unwritten journal buffers are always dirty
authorKent Overstreet <kent.overstreet@linux.dev>
Tue, 7 Nov 2023 23:08:38 +0000 (18:08 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Mon, 1 Jan 2024 16:47:41 +0000 (11:47 -0500)
commit0ba9375a111a88e47733b679f6affb7f6492de4c
tree47db49684bfdac7c534aa5dcad130a331ed4ac57
parentf33600057f50d3dea5cb3bda05c21ecce7125282
bcachefs: Unwritten journal buffers are always dirty

Ensure that journal bufs that haven't been written can't be reclaimed
from the journal pin fifo, and can thus have new pins taken.

Prep work for changing the btree write buffer to pull keys from the
journal directly.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/journal_reclaim.c