• Kent Overstreet's avatar
    bcachefs: Recover from blacklisted journal entries · 1ba8a796
    Kent Overstreet authored
    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>
    1ba8a796
recovery.c 37.5 KB