• Filipe Manana's avatar
    btrfs: make btrfs_destroy_marked_extents() return void · aec5716c
    Filipe Manana authored
    
    
    Currently btrfs_destroy_marked_extents() is returning the value of the
    last call to find_first_extent_bit(), which returns a value of 1 meaning
    no more ranges found the dirty pages io tree. This value is useless to the
    single caller of btrfs_destroy_marked_extents(), which ignores any return
    value from btrfs_destroy_marked_extents(). This is because it's only used
    in the transaction abort path, where we can't even deal with any errors
    since we are in a critical situation already and cleanup of resources is
    done in a best effort fashion.
    
    So make btrfs_destroy_marked_extents() return void.
    Signed-off-by: default avatarFilipe Manana <fdmanana@suse.com>
    Reviewed-by: default avatarDavid Sterba <dsterba@suse.com>
    Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
    aec5716c
disk-io.c 139 KB