Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+1
+1
fs/bcachefs/journal_reclaim.c
··· 303 303 * all btree nodes got written out 304 304 */ 305 305 while (!fifo_empty(&j->pin) && 306 + j->pin.front <= j->seq_ondisk && 306 307 !atomic_read(&fifo_peek_front(&j->pin).count)) { 307 308 j->pin.front++; 308 309 popped = true;