Thread (5 messages) 5 messages, 4 authors, 2021-08-18

Re: [PATCH v2] btrfs: rename btrfs_alloc_chunk to btrfs_create_chunk

From: Nikolay Borisov <hidden>
Date: 2021-08-18 06:26:58


On 5.07.21 г. 12:16, Nikolay Borisov wrote:
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.

Signed-off-by: Nikolay Borisov <redacted>
Ping
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help