mirror of
https://github.com/torvalds/linux.git
synced 2026-06-01 02:53:36 +02:00
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>
This commit is contained in:
parent
f33600057f
commit
0ba9375a11
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user