mirror of
https://github.com/kdave/btrfs-progs
synced 2024-12-22 14:13:04 +00:00
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:
parent
c8d3986ed7
commit
440e8b9830
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user