Skip to content

Commit

Permalink
Btrfs: do not export ulist functions
Browse files Browse the repository at this point in the history
There are not any users that use ulist except Btrfs,don't
export them.

Signed-off-by: Wang Shilong <wangsl.fnst@cn.fujitsu.com>
Reviewed-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: Chris Mason <clm@fb.com>
  • Loading branch information
Wang Shilong authored and Chris Mason committed Jan 29, 2014
1 parent 4c7a6f7 commit 49fc647
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
10 changes: 1 addition & 9 deletions fs/btrfs/ulist.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
*/

#include <linux/slab.h>
#include <linux/export.h>
#include "ulist.h"
#include "ctree.h"

Expand Down Expand Up @@ -51,7 +50,6 @@ void ulist_init(struct ulist *ulist)
ulist->root = RB_ROOT;
ulist->nnodes = 0;
}
EXPORT_SYMBOL(ulist_init);

/**
* ulist_fini - free up additionally allocated memory for the ulist
Expand All @@ -60,7 +58,7 @@ EXPORT_SYMBOL(ulist_init);
* This is useful in cases where the base 'struct ulist' has been statically
* allocated.
*/
void ulist_fini(struct ulist *ulist)
static void ulist_fini(struct ulist *ulist)
{
struct ulist_node *node;
struct ulist_node *next;
Expand All @@ -71,7 +69,6 @@ void ulist_fini(struct ulist *ulist)
ulist->root = RB_ROOT;
INIT_LIST_HEAD(&ulist->nodes);
}
EXPORT_SYMBOL(ulist_fini);

/**
* ulist_reinit - prepare a ulist for reuse
Expand All @@ -85,7 +82,6 @@ void ulist_reinit(struct ulist *ulist)
ulist_fini(ulist);
ulist_init(ulist);
}
EXPORT_SYMBOL(ulist_reinit);

/**
* ulist_alloc - dynamically allocate a ulist
Expand All @@ -104,7 +100,6 @@ struct ulist *ulist_alloc(gfp_t gfp_mask)

return ulist;
}
EXPORT_SYMBOL(ulist_alloc);

/**
* ulist_free - free dynamically allocated ulist
Expand All @@ -119,7 +114,6 @@ void ulist_free(struct ulist *ulist)
ulist_fini(ulist);
kfree(ulist);
}
EXPORT_SYMBOL(ulist_free);

static struct ulist_node *ulist_rbtree_search(struct ulist *ulist, u64 val)
{
Expand Down Expand Up @@ -214,7 +208,6 @@ int ulist_add_merge(struct ulist *ulist, u64 val, u64 aux,

return 1;
}
EXPORT_SYMBOL(ulist_add);

/**
* ulist_next - iterate ulist
Expand Down Expand Up @@ -256,4 +249,3 @@ struct ulist_node *ulist_next(struct ulist *ulist, struct ulist_iterator *uiter)
#endif
return node;
}
EXPORT_SYMBOL(ulist_next);
1 change: 0 additions & 1 deletion fs/btrfs/ulist.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ 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);
Expand Down

0 comments on commit 49fc647

Please sign in to comment.