• Filipe Manana's avatar
    btrfs: remove unnecessary logic when running new delayed references · 3cbb9f51
    Filipe Manana authored
    When running delayed references, at btrfs_run_delayed_refs(), we have this
    logic to run any new delayed references that might have been added just
    after we ran all delayed references. This logic grabs the first delayed
    reference, then locks it to wait for any contention on it before running
    all new delayed references. This however is pointless and not necessary
    because at __btrfs_run_delayed_refs() when we start running delayed
    references, we pick the first reference with btrfs_obtain_ref_head() and
    then we will lock it (with btrfs_delayed_ref_lock()).
    
    So remove the duplicate and unnecessary logic at btrfs_run_delayed_refs().
    Reviewed-by: default avatarJosef Bacik <josef@toxicpanda.com>
    Signed-off-by: default avatarFilipe Manana <fdmanana@suse.com>
    Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
    3cbb9f51
extent-tree.c 167 KB