diff options
author | Fabian Frederick <fabf@skynet.be> | 2014-04-03 17:50:35 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-04-03 19:21:26 -0400 |
commit | c11e614d712c4f3e89f31a0119111c01163f1508 (patch) | |
tree | 7994093d4653a8f7ca2fc0d29206fae20e531475 /fs/hfsplus | |
parent | d7bdb996aef67ea24c62707ca4e29b07025e9683 (diff) |
fs/hfsplus/attributes.c: add __init to hfsplus_create_attr_tree_cache()
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>
Diffstat (limited to 'fs/hfsplus')
-rw-r--r-- | fs/hfsplus/attributes.c | 2 | ||||
-rw-r--r-- | fs/hfsplus/hfsplus_fs.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/fs/hfsplus/attributes.c b/fs/hfsplus/attributes.c index 0f47890299c4..caf89a7be0a1 100644 --- a/fs/hfsplus/attributes.c +++ b/fs/hfsplus/attributes.c | |||
@@ -11,7 +11,7 @@ | |||
11 | 11 | ||
12 | static struct kmem_cache *hfsplus_attr_tree_cachep; | 12 | static struct kmem_cache *hfsplus_attr_tree_cachep; |
13 | 13 | ||
14 | int hfsplus_create_attr_tree_cache(void) | 14 | int __init hfsplus_create_attr_tree_cache(void) |
15 | { | 15 | { |
16 | if (hfsplus_attr_tree_cachep) | 16 | if (hfsplus_attr_tree_cachep) |
17 | return -EEXIST; | 17 | return -EEXIST; |
diff --git a/fs/hfsplus/hfsplus_fs.h b/fs/hfsplus/hfsplus_fs.h index 62d571eb69ba..83dc29286b10 100644 --- a/fs/hfsplus/hfsplus_fs.h +++ b/fs/hfsplus/hfsplus_fs.h | |||
@@ -367,7 +367,7 @@ typedef int (*search_strategy_t)(struct hfs_bnode *, | |||
367 | */ | 367 | */ |
368 | 368 | ||
369 | /* attributes.c */ | 369 | /* attributes.c */ |
370 | int hfsplus_create_attr_tree_cache(void); | 370 | int __init hfsplus_create_attr_tree_cache(void); |
371 | void hfsplus_destroy_attr_tree_cache(void); | 371 | void hfsplus_destroy_attr_tree_cache(void); |
372 | hfsplus_attr_entry *hfsplus_alloc_attr_entry(void); | 372 | hfsplus_attr_entry *hfsplus_alloc_attr_entry(void); |
373 | void hfsplus_destroy_attr_entry(hfsplus_attr_entry *entry_p); | 373 | void hfsplus_destroy_attr_entry(hfsplus_attr_entry *entry_p); |