aboutsummaryrefslogtreecommitdiffstats
path: root/fs/f2fs
diff options
context:
space:
mode:
authorNamjae Jeon <namjae.jeon@samsung.com>2013-01-16 10:08:30 -0500
committerJaegeuk Kim <jaegeuk.kim@samsung.com>2013-01-21 20:48:38 -0500
commit6e6093a8f144414d904575da5fdea40cf14fb63e (patch)
tree84e959d4c9194a95d74169c04b9055e3475bc034 /fs/f2fs
parent4589d25d015c2d02bb5f7075d0cbf6dcf23a33c0 (diff)
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>
Diffstat (limited to 'fs/f2fs')
-rw-r--r--fs/f2fs/checkpoint.c2
-rw-r--r--fs/f2fs/f2fs.h10
-rw-r--r--fs/f2fs/gc.c2
-rw-r--r--fs/f2fs/node.c2
-rw-r--r--fs/f2fs/super.c2
5 files changed, 9 insertions, 9 deletions
diff --git a/fs/f2fs/checkpoint.c b/fs/f2fs/checkpoint.c
index d75c86a17893..ff3c8439af87 100644
--- a/fs/f2fs/checkpoint.c
+++ b/fs/f2fs/checkpoint.c
@@ -771,7 +771,7 @@ void init_orphan_info(struct f2fs_sb_info *sbi)
771 sbi->n_orphans = 0; 771 sbi->n_orphans = 0;
772} 772}
773 773
774int create_checkpoint_caches(void) 774int __init create_checkpoint_caches(void)
775{ 775{
776 orphan_entry_slab = f2fs_kmem_cache_create("f2fs_orphan_entry", 776 orphan_entry_slab = f2fs_kmem_cache_create("f2fs_orphan_entry",
777 sizeof(struct orphan_inode_entry), NULL); 777 sizeof(struct orphan_inode_entry), NULL);
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h
index 976325d51e3d..c8e2d751ef9c 100644
--- a/fs/f2fs/f2fs.h
+++ b/fs/f2fs/f2fs.h
@@ -914,7 +914,7 @@ int restore_node_summary(struct f2fs_sb_info *, unsigned int,
914void flush_nat_entries(struct f2fs_sb_info *); 914void flush_nat_entries(struct f2fs_sb_info *);
915int build_node_manager(struct f2fs_sb_info *); 915int build_node_manager(struct f2fs_sb_info *);
916void destroy_node_manager(struct f2fs_sb_info *); 916void destroy_node_manager(struct f2fs_sb_info *);
917int create_node_manager_caches(void); 917int __init create_node_manager_caches(void);
918void destroy_node_manager_caches(void); 918void destroy_node_manager_caches(void);
919 919
920/* 920/*
@@ -966,7 +966,7 @@ void sync_dirty_dir_inodes(struct f2fs_sb_info *);
966void block_operations(struct f2fs_sb_info *); 966void block_operations(struct f2fs_sb_info *);
967void write_checkpoint(struct f2fs_sb_info *, bool, bool); 967void write_checkpoint(struct f2fs_sb_info *, bool, bool);
968void init_orphan_info(struct f2fs_sb_info *); 968void init_orphan_info(struct f2fs_sb_info *);
969int create_checkpoint_caches(void); 969int __init create_checkpoint_caches(void);
970void destroy_checkpoint_caches(void); 970void destroy_checkpoint_caches(void);
971 971
972/* 972/*
@@ -988,7 +988,7 @@ void stop_gc_thread(struct f2fs_sb_info *);
988block_t start_bidx_of_node(unsigned int); 988block_t start_bidx_of_node(unsigned int);
989int f2fs_gc(struct f2fs_sb_info *); 989int f2fs_gc(struct f2fs_sb_info *);
990void build_gc_manager(struct f2fs_sb_info *); 990void build_gc_manager(struct f2fs_sb_info *);
991int create_gc_caches(void); 991int __init create_gc_caches(void);
992void destroy_gc_caches(void); 992void destroy_gc_caches(void);
993 993
994/* 994/*
@@ -1060,7 +1060,7 @@ struct f2fs_stat_info {
1060 1060
1061int f2fs_build_stats(struct f2fs_sb_info *); 1061int f2fs_build_stats(struct f2fs_sb_info *);
1062void f2fs_destroy_stats(struct f2fs_sb_info *); 1062void f2fs_destroy_stats(struct f2fs_sb_info *);
1063void f2fs_create_root_stats(void); 1063void __init f2fs_create_root_stats(void);
1064void f2fs_destroy_root_stats(void); 1064void f2fs_destroy_root_stats(void);
1065#else 1065#else
1066#define stat_inc_call_count(si) 1066#define stat_inc_call_count(si)
@@ -1071,7 +1071,7 @@ void f2fs_destroy_root_stats(void);
1071 1071
1072static inline int f2fs_build_stats(struct f2fs_sb_info *sbi) { return 0; } 1072static inline int f2fs_build_stats(struct f2fs_sb_info *sbi) { return 0; }
1073static inline void f2fs_destroy_stats(struct f2fs_sb_info *sbi) { } 1073static inline void f2fs_destroy_stats(struct f2fs_sb_info *sbi) { }
1074static inline void f2fs_create_root_stats(void) { } 1074static inline void __init f2fs_create_root_stats(void) { }
1075static inline void f2fs_destroy_root_stats(void) { } 1075static inline void f2fs_destroy_root_stats(void) { }
1076#endif 1076#endif
1077 1077
diff --git a/fs/f2fs/gc.c b/fs/f2fs/gc.c
index b4dd90cf1f18..809cfec6683c 100644
--- a/fs/f2fs/gc.c
+++ b/fs/f2fs/gc.c
@@ -697,7 +697,7 @@ void build_gc_manager(struct f2fs_sb_info *sbi)
697 DIRTY_I(sbi)->v_ops = &default_v_ops; 697 DIRTY_I(sbi)->v_ops = &default_v_ops;
698} 698}
699 699
700int create_gc_caches(void) 700int __init create_gc_caches(void)
701{ 701{
702 winode_slab = f2fs_kmem_cache_create("f2fs_gc_inodes", 702 winode_slab = f2fs_kmem_cache_create("f2fs_gc_inodes",
703 sizeof(struct inode_entry), NULL); 703 sizeof(struct inode_entry), NULL);
diff --git a/fs/f2fs/node.c b/fs/f2fs/node.c
index 5066bfd256c9..f177c018745c 100644
--- a/fs/f2fs/node.c
+++ b/fs/f2fs/node.c
@@ -1732,7 +1732,7 @@ void destroy_node_manager(struct f2fs_sb_info *sbi)
1732 kfree(nm_i); 1732 kfree(nm_i);
1733} 1733}
1734 1734
1735int create_node_manager_caches(void) 1735int __init create_node_manager_caches(void)
1736{ 1736{
1737 nat_entry_slab = f2fs_kmem_cache_create("nat_entry", 1737 nat_entry_slab = f2fs_kmem_cache_create("nat_entry",
1738 sizeof(struct nat_entry), NULL); 1738 sizeof(struct nat_entry), NULL);
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c
index d551a724b736..37fad04c8669 100644
--- a/fs/f2fs/super.c
+++ b/fs/f2fs/super.c
@@ -640,7 +640,7 @@ static struct file_system_type f2fs_fs_type = {
640 .fs_flags = FS_REQUIRES_DEV, 640 .fs_flags = FS_REQUIRES_DEV,
641}; 641};
642 642
643static int init_inodecache(void) 643static int __init init_inodecache(void)
644{ 644{
645 f2fs_inode_cachep = f2fs_kmem_cache_create("f2fs_inode_cache", 645 f2fs_inode_cachep = f2fs_kmem_cache_create("f2fs_inode_cache",
646 sizeof(struct f2fs_inode_info), NULL); 646 sizeof(struct f2fs_inode_info), NULL);