Commit 6fa30fe7 authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: journal_seq_blacklist_add() now handles entries being added out of order



bch2_journal_seq_blacklist_add() was bugged when the new entry
overlapped with multiple existing entries, and it also assumed new
entries are being added in increasing order.

This is true on any sane filesystem, but when trying to recover from
very badly mangled filesystems we might end up with the journal sequence
number rewinding vs. what the blacklist list knows about - easiest to
just handle that here.

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