Skip to content
Snippets Groups Projects
user avatar
Kent Overstreet authored
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>
a6548c8b
History
Name Last commit Last update