Skip to content
Commit a6548c8b authored by Kent Overstreet's avatar Kent Overstreet
Browse files

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: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 189c176c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment