• Nikolay Borisov's avatar
    btrfs: rename btrfs_alloc_chunk to btrfs_create_chunk · f6f39f7a
    Nikolay Borisov authored
    The user facing function used to allocate new chunks is
    btrfs_chunk_alloc, unfortunately there is yet another similar sounding
    function - btrfs_alloc_chunk. This creates confusion, especially since
    the latter function can be considered "private" in the sense that it
    implements the first stage of chunk creation and as such is called by
    btrfs_chunk_alloc.
    
    To avoid the awkwardness that comes with having similarly named but
    distinctly different in their purpose function rename btrfs_alloc_chunk
    to btrfs_create_chunk, given that the main purpose of this function is
    to orchestrate the whole process of allocating a chunk - reserving space
    into devices, deciding on characteristics of the stripe size and
    creating the in-memory structures.
    Reviewed-by: default avatarFilipe Manana <fdmanana@suse.com>
    Reviewed-by: default avatarAnand Jain <anand.jain@oracle.com>
    Signed-off-by: default avatarNikolay Borisov <nborisov@suse.com>
    Reviewed-by: default avatarDavid Sterba <dsterba@suse.com>
    Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
    f6f39f7a
volumes.c 220 KB