bcachefs: Ensure btree node cache is not more than half dirty
authorKent Overstreet <kent.overstreet@gmail.com>
Thu, 11 Nov 2021 20:50:22 +0000 (15:50 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:52 +0000 (17:09 -0400)
commit637de729fc86effe021bd067cccd68efd07f59c0
tree38ee967775072e298af2fc5377771ca5516d74e0
parentc782c5832e9251ab6f4df837932d959f3e02ab25
bcachefs: Ensure btree node cache is not more than half dirty

Tweak journal reclaim to ensure the btree node cache isn't more
than half dirty so that memory reclaim can always make progress - the
same as we do for the btree key cache.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
fs/bcachefs/journal_reclaim.c