• Filipe Manana's avatar
    btrfs: remove roots ulist when checking data extent sharedness · b6296858
    Filipe Manana authored
    Currently btrfs_is_data_extent_shared() is passing a ulist for the roots
    argument of find_parent_nodes(), however it does not use that ulist for
    anything and for this context that list always ends up with at most one
    element.
    
    Since find_parent_nodes() is able to deal with a NULL ulist for its roots
    argument, make btrfs_is_data_extent_shared() pass it NULL and avoid the
    burden of allocating memory for the unnused roots ulist, initializing it,
    releasing it and allocating one struct ulist_node for it during the call
    to find_parent_nodes().
    Signed-off-by: default avatarFilipe Manana <fdmanana@suse.com>
    Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
    b6296858
backref.h 11 KB