]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bcachefs: Close journal entry if necessary when flushing all pins
authorKent Overstreet <kent.overstreet@linux.dev>
Sun, 10 Dec 2023 20:23:27 +0000 (15:23 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 10 Dec 2023 21:53:46 +0000 (16:53 -0500)
commita66ff26b0f31189e413a87065c25949c359e4bef
treeb5dfed7d38deb95921c76b4b9cca11e0eff0d25d
parent4a147af2081070218a4c66523c584e198994528e
bcachefs: Close journal entry if necessary when flushing all pins

Since outstanding journal buffers hold a journal pin, when flushing all
pins we need to close the current journal entry if necessary so its pin
can be released.

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