]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
bcachefs: Be more conservation about journal pre-reservations
authorKent Overstreet <kent.overstreet@gmail.com>
Sat, 5 Dec 2020 21:25:05 +0000 (16:25 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:49 +0000 (17:08 -0400)
commit5d32c5bb076e76232e56fd44c537046abd54d32c
treea5df7839b857d7510fc23db234dea7a854d21177
parentadbcada43fa79197224b5a522b1faaf222b43bcd
bcachefs: Be more conservation about journal pre-reservations

 - Try to always keep 1/8th of the journal free, on top of
   pre-reservations
 - Move the check for whether the journal is stuck to
   bch2_journal_space_available, and make it only fire when there aren't
   any journal writes in flight (that might free up space by updating
   last_seq)

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
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
fs/bcachefs/journal_types.h