• Kent Overstreet's avatar
    bcachefs: Re-implement extent merging in transaction commit path · 5db95e50
    Kent Overstreet authored
    We haven't had extent merging in quite some time. It used to be done by
    the btree code when sorting btree nodes, but that was eliminated as part
    of the work to separate extent handling from core btree code.
    
    This patch re-implements extent merging in the transaction commit path.
    We don't currently have the ability to merge reflink pointers, we need
    to do some work on the triggers code to be able to do that without
    ending up with incorrect refcounts.
    Signed-off-by: default avatarKent Overstreet <kent.overstreet@gmail.com>
    5db95e50
btree_update_leaf.c 30.7 KB