]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
fs/hfsplus/attributes.c: add __init to hfsplus_create_attr_tree_cache()
authorFabian Frederick <fabf@skynet.be>
Thu, 3 Apr 2014 21:50:35 +0000 (14:50 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 3 Apr 2014 23:21:26 +0000 (16:21 -0700)
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>
fs/hfsplus/attributes.c
fs/hfsplus/hfsplus_fs.h

index 0f47890299c4565aef08c06c335040400e729dd6..caf89a7be0a17e0202a4ac55806d30c07c3498a4 100644 (file)
@@ -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;
index 62d571eb69bae9c7d04b5c27238b9fa2a1d4a633..83dc29286b10414a847944a834559e1810fb3608 100644 (file)
@@ -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);