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

bcachefs: Fix journal replay with unreadable btree roots



When a btree root is unreadable, we still might be able to get some data
back by replaying what's in the journal. Previously though, we got
confused when journal replay would attempt to replay a key for a level
that didn't exist.

This adds bch2_btree_increase_depth(), so that journal replay can handle
this.

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