Commit 1ba8a796 authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: Recover from blacklisted journal entries



If it so happens that we crash while dirty, meaning we don't have the
superblock clean section, and we erroneously mark a journal entry we
wrote as blacklisted, we won't be able to recover.

This patch fixes this by adding a fallback: if we've got no superblock
clean section, and no non-ignored journal entries, we try the most
recent ignored journal entry.

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 14d7d61f
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