Commit 57c723de authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: Rework __bch2_data_update_index_update()



This makes some improvements to the logic for adding/removing replicas,
as part of the larger erasure coding improvements. We now directly
consider number of replicas desired for the given inode, and
extent/pointer durability: this ensures that the extent ends up with the
desired number of replicas when we're replacing multiple pointers with
one that has higher durability (e.g. erasure coded).

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