Commit 0ba9375a authored by Kent Overstreet's avatar Kent Overstreet
Browse files

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: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent f3360005
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -303,6 +303,7 @@ void bch2_journal_reclaim_fast(struct journal *j)
	 * all btree nodes got written out
	 */
	while (!fifo_empty(&j->pin) &&
	       j->pin.front <= j->seq_ondisk &&
	       !atomic_read(&fifo_peek_front(&j->pin).count)) {
		j->pin.front++;
		popped = true;