• Jan Schmidt's avatar
    Btrfs: look into the extent during find_all_leafs · 976b1908
    Jan Schmidt authored
    Before this patch we called find_all_leafs for a data extent, then called
    find_all_roots and then looked into the extent to grab the information
    we were seeking. This was done without holding the leaves locked to avoid
    deadlocks. However, this can obviouly race with concurrent tree
    modifications.
    
    Instead, we now look into the extent while we're holding the lock during
    find_all_leafs and store this information together with the leaf list.
    Signed-off-by: default avatarJan Schmidt <list.btrfs@jan-o-sch.net>
    976b1908
backref.h 2.31 KB