summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2017-02-13 13:40:16 +0100
committerDavid Sterba <dsterba@suse.com>2017-02-17 12:03:49 +0100
commit9d037933861805799db4edfd075412a39e2549f4 (patch)
tree9137d0f666938be47a8e72687607b23b89059e9c
parent025db916aa7f2cf31183080a82ef090d30cf270f (diff)
downloadop-kernel-dev-9d037933861805799db4edfd075412a39e2549f4.zip
op-kernel-dev-9d037933861805799db4edfd075412a39e2549f4.tar.gz
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.c2
-rw-r--r--fs/btrfs/ulist.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/fs/btrfs/ulist.c b/fs/btrfs/ulist.c
index b1434bb..5deee56 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 007b22f..1a41304 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);
OpenPOWER on IntegriCloud