• Kent Overstreet's avatar
    bcachefs: Whiteout changes · c9bebae6
    Kent Overstreet authored
    More prep work for snapshots: extents will soon be using
    KEY_TYPE_deleted for whiteouts, with 0 size. But we wen't be able to
    keep these whiteouts with the rest of the extents in the btree node, due
    to sorting invariants breaking.
    
    We can deal with this by immediately moving the new whiteouts to the
    unwritten whiteouts area - this just means those whiteouts won't be
    sorted, so we need new code to sort them prior to merging them with the
    rest of the keys to be written.
    Signed-off-by: default avatarKent Overstreet <kent.overstreet@gmail.com>
    Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
    c9bebae6
btree_update_leaf.c 24 KB