Skip to content

Commit

Permalink
fs/hfsplus/attributes.c: add __init to hfsplus_create_attr_tree_cache()
Browse files Browse the repository at this point in the history
hfsplus_create_attr_tree_cache is only called by __init init_hfsplus_fs

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Reviewed-by: Vyacheslav Dubeyko <slava@dubeyko.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Fabian Frederick authored and Linus Torvalds committed Apr 3, 2014
1 parent d7bdb99 commit c11e614
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fs/hfsplus/attributes.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

static struct kmem_cache *hfsplus_attr_tree_cachep;

int hfsplus_create_attr_tree_cache(void)
int __init hfsplus_create_attr_tree_cache(void)
{
if (hfsplus_attr_tree_cachep)
return -EEXIST;
Expand Down
2 changes: 1 addition & 1 deletion fs/hfsplus/hfsplus_fs.h
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ typedef int (*search_strategy_t)(struct hfs_bnode *,
*/

/* attributes.c */
int hfsplus_create_attr_tree_cache(void);
int __init hfsplus_create_attr_tree_cache(void);
void hfsplus_destroy_attr_tree_cache(void);
hfsplus_attr_entry *hfsplus_alloc_attr_entry(void);
void hfsplus_destroy_attr_entry(hfsplus_attr_entry *entry_p);
Expand Down

0 comments on commit c11e614

Please sign in to comment.