]> Git Repo - linux.git/commit
bcachefs: Avoid flushing the journal in the discard path
authorKent Overstreet <[email protected]>
Mon, 15 Jan 2024 22:56:22 +0000 (17:56 -0500)
committerKent Overstreet <[email protected]>
Sun, 21 Jan 2024 18:27:09 +0000 (13:27 -0500)
commita6548c8b5eb541e77ffcf497e8761f34172ff828
treee1c9a12250c925fe94800e94ac2e53c6e3aa5ad5
parent189c176c5dd324531d4cb23f172b1761e65bb0ed
bcachefs: Avoid flushing the journal in the discard path

When issuing discards, we may need to flush the journal if there's too
many buckets that can't be discarded until a journal flush.

But the heuristic was bad; we should be comparing the number of buckets
that need to flushes against the number of free buckets, not the number
of buckets we saw.

Signed-off-by: Kent Overstreet <[email protected]>
fs/bcachefs/alloc_background.c
This page took 0.053055 seconds and 4 git commands to generate.