Commit 91ecd41b authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: bch2_extent_ptr_desired_durability()



This adds a new helper for getting a pointer's durability irrespective
of the device state, and uses it in the the data update path.

This fixes a bug where we do a data update but request 0 replicas to be
allocated, because the replica being rewritten is on a device marked as
failed.

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