• Kent Overstreet's avatar
    bcachefs: Copygc now uses backpointers · 8e3f913e
    Kent Overstreet authored
    Previously, copygc needed to walk the entire extents & reflink btrees to
    find extents that needed to be moved.
    
    Now that we have backpointers, this patch implements
    bch2_evacuate_bucket() in the move code, which copygc now uses for
    evacuating mostly empty buckets.
    
    Also, thanks to the new backpointers code, copygc can now move btree
    nodes.
    Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
    8e3f913e
movinggc.c 7 KB