btrfs-progs: shared: rename ulist_fini to ulist_release

Sync the file with kernel version.

Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
David Sterba 2019-01-16 21:16:14 +01:00
parent c8d3986ed7
commit 440e8b9830
1 changed files with 5 additions and 5 deletions

View File

@ -52,13 +52,13 @@ void ulist_init(struct ulist *ulist)
}
/**
* ulist_fini - free up additionally allocated memory for the ulist
* ulist_release - free up additionally allocated memory for the ulist
* @ulist: the ulist from which to free the additional memory
*
* This is useful in cases where the base 'struct ulist' has been statically
* allocated.
*/
static void ulist_fini(struct ulist *ulist)
void ulist_release(struct ulist *ulist)
{
struct ulist_node *node;
struct ulist_node *next;
@ -79,7 +79,7 @@ static void ulist_fini(struct ulist *ulist)
*/
void ulist_reinit(struct ulist *ulist)
{
ulist_fini(ulist);
ulist_release(ulist);
ulist_init(ulist);
}
@ -105,13 +105,13 @@ struct ulist *ulist_alloc(gfp_t gfp_mask)
* ulist_free - free dynamically allocated ulist
* @ulist: ulist to free
*
* It is not necessary to call ulist_fini before.
* It is not necessary to call ulist_release before.
*/
void ulist_free(struct ulist *ulist)
{
if (!ulist)
return;
ulist_fini(ulist);
ulist_release(ulist);
kfree(ulist);
}