Commit 26559553 authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: Add a fallback when journal_keys doesn't fit in ram



We may end up in a situation where allocating the buffer for the sorted
journal_keys fails - but it would likely succeed, post compaction where
we drop duplicates.

We've had reports of this allocation failing, so this adds a slowpath to
do the compaction incrementally.

This is only a band-aid fix; we need to look at limiting the number of
keys in the journal based on the amount of system RAM.

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 2f081584
Supports Markdown
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