diff options
author | David Sterba <dsterba@suse.com> | 2017-02-13 13:40:16 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-02-17 12:03:49 +0100 |
commit | 9d037933861805799db4edfd075412a39e2549f4 (patch) | |
tree | 9137d0f666938be47a8e72687607b23b89059e9c | |
parent | 025db916aa7f2cf31183080a82ef090d30cf270f (diff) |
btrfs: ulist: make the finalization function public
Make ulist_fini externally visible so the ulist API is complete.
Signed-off-by: David Sterba <dsterba@suse.com>
-rw-r--r-- | fs/btrfs/ulist.c | 2 | ||||
-rw-r--r-- | fs/btrfs/ulist.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/fs/btrfs/ulist.c b/fs/btrfs/ulist.c index b1434bb57e36..5deee56434fc 100644 --- a/fs/btrfs/ulist.c +++ b/fs/btrfs/ulist.c @@ -58,7 +58,7 @@ void ulist_init(struct ulist *ulist) * This is useful in cases where the base 'struct ulist' has been statically * allocated. */ -static void ulist_fini(struct ulist *ulist) +void ulist_fini(struct ulist *ulist) { struct ulist_node *node; struct ulist_node *next; diff --git a/fs/btrfs/ulist.h b/fs/btrfs/ulist.h index 007b22fff3f9..1a4130443d7e 100644 --- a/fs/btrfs/ulist.h +++ b/fs/btrfs/ulist.h @@ -44,6 +44,7 @@ struct ulist { }; void ulist_init(struct ulist *ulist); +void ulist_fini(struct ulist *ulist); void ulist_reinit(struct ulist *ulist); struct ulist *ulist_alloc(gfp_t gfp_mask); void ulist_free(struct ulist *ulist); |