Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

f2fs: add __init to functions in init_f2fs_fs

Add __init to functions in init_f2fs_fs for code consistency.

Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Amit Sahrawat <a.sahrawat@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>

authored by

Namjae Jeon and committed by
Jaegeuk Kim
6e6093a8 4589d25d

+9 -9
+1 -1
fs/f2fs/checkpoint.c
··· 771 771 sbi->n_orphans = 0; 772 772 } 773 773 774 - int create_checkpoint_caches(void) 774 + int __init create_checkpoint_caches(void) 775 775 { 776 776 orphan_entry_slab = f2fs_kmem_cache_create("f2fs_orphan_entry", 777 777 sizeof(struct orphan_inode_entry), NULL);
+5 -5
fs/f2fs/f2fs.h
··· 914 914 void flush_nat_entries(struct f2fs_sb_info *); 915 915 int build_node_manager(struct f2fs_sb_info *); 916 916 void destroy_node_manager(struct f2fs_sb_info *); 917 - int create_node_manager_caches(void); 917 + int __init create_node_manager_caches(void); 918 918 void destroy_node_manager_caches(void); 919 919 920 920 /* ··· 966 966 void block_operations(struct f2fs_sb_info *); 967 967 void write_checkpoint(struct f2fs_sb_info *, bool, bool); 968 968 void init_orphan_info(struct f2fs_sb_info *); 969 - int create_checkpoint_caches(void); 969 + int __init create_checkpoint_caches(void); 970 970 void destroy_checkpoint_caches(void); 971 971 972 972 /* ··· 988 988 block_t start_bidx_of_node(unsigned int); 989 989 int f2fs_gc(struct f2fs_sb_info *); 990 990 void build_gc_manager(struct f2fs_sb_info *); 991 - int create_gc_caches(void); 991 + int __init create_gc_caches(void); 992 992 void destroy_gc_caches(void); 993 993 994 994 /* ··· 1060 1060 1061 1061 int f2fs_build_stats(struct f2fs_sb_info *); 1062 1062 void f2fs_destroy_stats(struct f2fs_sb_info *); 1063 - void f2fs_create_root_stats(void); 1063 + void __init f2fs_create_root_stats(void); 1064 1064 void f2fs_destroy_root_stats(void); 1065 1065 #else 1066 1066 #define stat_inc_call_count(si) ··· 1071 1071 1072 1072 static inline int f2fs_build_stats(struct f2fs_sb_info *sbi) { return 0; } 1073 1073 static inline void f2fs_destroy_stats(struct f2fs_sb_info *sbi) { } 1074 - static inline void f2fs_create_root_stats(void) { } 1074 + static inline void __init f2fs_create_root_stats(void) { } 1075 1075 static inline void f2fs_destroy_root_stats(void) { } 1076 1076 #endif 1077 1077
+1 -1
fs/f2fs/gc.c
··· 697 697 DIRTY_I(sbi)->v_ops = &default_v_ops; 698 698 } 699 699 700 - int create_gc_caches(void) 700 + int __init create_gc_caches(void) 701 701 { 702 702 winode_slab = f2fs_kmem_cache_create("f2fs_gc_inodes", 703 703 sizeof(struct inode_entry), NULL);
+1 -1
fs/f2fs/node.c
··· 1732 1732 kfree(nm_i); 1733 1733 } 1734 1734 1735 - int create_node_manager_caches(void) 1735 + int __init create_node_manager_caches(void) 1736 1736 { 1737 1737 nat_entry_slab = f2fs_kmem_cache_create("nat_entry", 1738 1738 sizeof(struct nat_entry), NULL);
+1 -1
fs/f2fs/super.c
··· 640 640 .fs_flags = FS_REQUIRES_DEV, 641 641 }; 642 642 643 - static int init_inodecache(void) 643 + static int __init init_inodecache(void) 644 644 { 645 645 f2fs_inode_cachep = f2fs_kmem_cache_create("f2fs_inode_cache", 646 646 sizeof(struct f2fs_inode_info), NULL);