• Filipe Manana's avatar
    btrfs: send: always use the rbtree based inode ref management infrastructure · 0d8869fb
    Filipe Manana authored
    After the patch "btrfs: send: fix sending link commands for existing file
    paths", we now have two infrastructures to detect and eliminate duplicated
    inode references (due to names that got removed and re-added between the
    send and parent snapshots):
    
    1) One that works on a single inode ref/extref item;
    
    2) A new one that works acrosss all ref/extref items for an inode, and
       it's also more efficient because even in the single ref/extref item
       case, it does not do a linear search for all the names encoded in the
       ref/extref item, it uses red black trees to speedup up the search.
    
    There's no good reason to keep both infrastructures, we can use the new
    one everywhere, and it's always more efficient.
    
    So remove the old infrastructure and change all sites that are using it
    to use the new one.
    Signed-off-by: default avatarFilipe Manana <fdmanana@suse.com>
    Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
    0d8869fb
send.c 202 KB