• Kent Overstreet's avatar
    bcachefs: Extents may now cross btree node boundaries · 8042b5b7
    Kent Overstreet authored
    When snapshots arrive, we won't necessarily be able to arbitrarily split
    existis - when we need to split an existing extent, we'll have to check
    if the extent was overwritten in child snapshots and if so emit a
    whiteout for the split in the child snapshot.
    
    Because extents couldn't span btree nodes previously, journal replay
    would sometimes have to split existing extents. That's no good anymore,
    but fortunately since extent handling has already been lifted above most
    of the btree code there's no real need for that rule anymore.
    Signed-off-by: default avatarKent Overstreet <kent.overstreet@gmail.com>
    Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
    8042b5b7
btree_update_leaf.c 30.2 KB