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

bcachefs: Fix allocate -> self healing path



When we go to allocate and find taht a bucket in the freespace btree is
actually allocated, we're supposed to return nonzero to tell the
allocator to skip it.

This fixes an emergency read only due to a bucket/ptr gen mismatch - we
also don't return the correct bucket gen when this happens.

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 016c4b48
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment