• Kent Overstreet's avatar
    bcachefs: Rework __bch2_data_update_index_update() · 57c723de
    Kent Overstreet authored
    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>
    57c723de
data_update.c 14.4 KB