Skip to content
Commit f648b6c1 authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: Fix missing alloc_data_type_set()



Incorrect bucket state transition in the discard path; when incrementing
a bucket's generation number that had already been discarded, we were
forgetting to check if it should be need_gc_gens, not free.

This was caught by the .invalid checks in the transaction commit path,
causing us to go emergency read only.

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