Commit 3f59547e authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: Refactor bch2_check_alloc_to_lru_ref()



This code was somewhat convoluted - because originally bch2_lru_set()
could modify the LRU index if there was a collision.

That's no longer the case, so the "create LRU entry" path has no reason
to update the alloc key, so we can separate the handling of the two fsck
errors.

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