aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2010-10-27 21:30:14 -0400
committerTheodore Ts'o <tytso@mit.edu>2010-10-27 21:30:14 -0400
commit5dabfc78dcedbe46cb2e4872dde448de3cec2979 (patch)
tree804ef3e76289978ef6690c2b8f379a14a60b15f0 /fs/ext4
parent7f93cff90fa9be6ed45f6189e136153d1d8631b0 (diff)
ext4: rename {exit,init}_ext4_*() to ext4_{exit,init}_*()
This is a cleanup to avoid namespace leaks out of fs/ext4 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4')
-rw-r--r--fs/ext4/block_validity.c4
-rw-r--r--fs/ext4/ext4.h12
-rw-r--r--fs/ext4/mballoc.c4
-rw-r--r--fs/ext4/page-io.c4
-rw-r--r--fs/ext4/super.c32
-rw-r--r--fs/ext4/xattr.c4
-rw-r--r--fs/ext4/xattr.h8
7 files changed, 34 insertions, 34 deletions
diff --git a/fs/ext4/block_validity.c b/fs/ext4/block_validity.c
index 68bab70dd139..fac90f3fba80 100644
--- a/fs/ext4/block_validity.c
+++ b/fs/ext4/block_validity.c
@@ -29,7 +29,7 @@ struct ext4_system_zone {
29 29
30static struct kmem_cache *ext4_system_zone_cachep; 30static struct kmem_cache *ext4_system_zone_cachep;
31 31
32int __init init_ext4_system_zone(void) 32int __init ext4_init_system_zone(void)
33{ 33{
34 ext4_system_zone_cachep = KMEM_CACHE(ext4_system_zone, 0); 34 ext4_system_zone_cachep = KMEM_CACHE(ext4_system_zone, 0);
35 if (ext4_system_zone_cachep == NULL) 35 if (ext4_system_zone_cachep == NULL)
@@ -37,7 +37,7 @@ int __init init_ext4_system_zone(void)
37 return 0; 37 return 0;
38} 38}
39 39
40void exit_ext4_system_zone(void) 40void ext4_exit_system_zone(void)
41{ 41{
42 kmem_cache_destroy(ext4_system_zone_cachep); 42 kmem_cache_destroy(ext4_system_zone_cachep);
43} 43}
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h
index 98dde2b7dd6f..5d72c261d7e9 100644
--- a/fs/ext4/ext4.h
+++ b/fs/ext4/ext4.h
@@ -1684,8 +1684,8 @@ extern ext4_fsblk_t ext4_mb_new_blocks(handle_t *,
1684 struct ext4_allocation_request *, int *); 1684 struct ext4_allocation_request *, int *);
1685extern int ext4_mb_reserve_blocks(struct super_block *, int); 1685extern int ext4_mb_reserve_blocks(struct super_block *, int);
1686extern void ext4_discard_preallocations(struct inode *); 1686extern void ext4_discard_preallocations(struct inode *);
1687extern int __init init_ext4_mballoc(void); 1687extern int __init ext4_init_mballoc(void);
1688extern void exit_ext4_mballoc(void); 1688extern void ext4_exit_mballoc(void);
1689extern void ext4_free_blocks(handle_t *handle, struct inode *inode, 1689extern void ext4_free_blocks(handle_t *handle, struct inode *inode,
1690 struct buffer_head *bh, ext4_fsblk_t block, 1690 struct buffer_head *bh, ext4_fsblk_t block,
1691 unsigned long count, int flags); 1691 unsigned long count, int flags);
@@ -2040,8 +2040,8 @@ extern const struct inode_operations ext4_fast_symlink_inode_operations;
2040/* block_validity */ 2040/* block_validity */
2041extern void ext4_release_system_zone(struct super_block *sb); 2041extern void ext4_release_system_zone(struct super_block *sb);
2042extern int ext4_setup_system_zone(struct super_block *sb); 2042extern int ext4_setup_system_zone(struct super_block *sb);
2043extern int __init init_ext4_system_zone(void); 2043extern int __init ext4_init_system_zone(void);
2044extern void exit_ext4_system_zone(void); 2044extern void ext4_exit_system_zone(void);
2045extern int ext4_data_block_valid(struct ext4_sb_info *sbi, 2045extern int ext4_data_block_valid(struct ext4_sb_info *sbi,
2046 ext4_fsblk_t start_blk, 2046 ext4_fsblk_t start_blk,
2047 unsigned int count); 2047 unsigned int count);
@@ -2070,8 +2070,8 @@ extern int ext4_move_extents(struct file *o_filp, struct file *d_filp,
2070 __u64 len, __u64 *moved_len); 2070 __u64 len, __u64 *moved_len);
2071 2071
2072/* page-io.c */ 2072/* page-io.c */
2073extern int __init init_ext4_pageio(void); 2073extern int __init ext4_init_pageio(void);
2074extern void exit_ext4_pageio(void); 2074extern void ext4_exit_pageio(void);
2075extern void ext4_free_io_end(ext4_io_end_t *io); 2075extern void ext4_free_io_end(ext4_io_end_t *io);
2076extern ext4_io_end_t *ext4_init_io_end(struct inode *inode, gfp_t flags); 2076extern ext4_io_end_t *ext4_init_io_end(struct inode *inode, gfp_t flags);
2077extern int ext4_end_io_nolock(ext4_io_end_t *io); 2077extern int ext4_end_io_nolock(ext4_io_end_t *io);
diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c
index e3bcc06b4906..381ac565786a 100644
--- a/fs/ext4/mballoc.c
+++ b/fs/ext4/mballoc.c
@@ -2705,7 +2705,7 @@ static void ext4_remove_debugfs_entry(void)
2705 2705
2706#endif 2706#endif
2707 2707
2708int __init init_ext4_mballoc(void) 2708int __init ext4_init_mballoc(void)
2709{ 2709{
2710 ext4_pspace_cachep = KMEM_CACHE(ext4_prealloc_space, 2710 ext4_pspace_cachep = KMEM_CACHE(ext4_prealloc_space,
2711 SLAB_RECLAIM_ACCOUNT); 2711 SLAB_RECLAIM_ACCOUNT);
@@ -2730,7 +2730,7 @@ int __init init_ext4_mballoc(void)
2730 return 0; 2730 return 0;
2731} 2731}
2732 2732
2733void exit_ext4_mballoc(void) 2733void ext4_exit_mballoc(void)
2734{ 2734{
2735 int i; 2735 int i;
2736 /* 2736 /*
diff --git a/fs/ext4/page-io.c b/fs/ext4/page-io.c
index b972ca50f851..46a7d6a9d976 100644
--- a/fs/ext4/page-io.c
+++ b/fs/ext4/page-io.c
@@ -32,7 +32,7 @@
32 32
33static struct kmem_cache *io_page_cachep, *io_end_cachep; 33static struct kmem_cache *io_page_cachep, *io_end_cachep;
34 34
35int __init init_ext4_pageio(void) 35int __init ext4_init_pageio(void)
36{ 36{
37 io_page_cachep = KMEM_CACHE(ext4_io_page, SLAB_RECLAIM_ACCOUNT); 37 io_page_cachep = KMEM_CACHE(ext4_io_page, SLAB_RECLAIM_ACCOUNT);
38 if (io_page_cachep == NULL) 38 if (io_page_cachep == NULL)
@@ -46,7 +46,7 @@ int __init init_ext4_pageio(void)
46 return 0; 46 return 0;
47} 47}
48 48
49void exit_ext4_pageio(void) 49void ext4_exit_pageio(void)
50{ 50{
51 kmem_cache_destroy(io_end_cachep); 51 kmem_cache_destroy(io_end_cachep);
52 kmem_cache_destroy(io_page_cachep); 52 kmem_cache_destroy(io_page_cachep);
diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index c9e06c647ce8..94e60038e05d 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -4770,15 +4770,15 @@ out:
4770 return ret; 4770 return ret;
4771} 4771}
4772 4772
4773static int __init init_ext4_fs(void) 4773static int __init ext4_init_fs(void)
4774{ 4774{
4775 int err; 4775 int err;
4776 4776
4777 ext4_check_flag_values(); 4777 ext4_check_flag_values();
4778 err = init_ext4_pageio(); 4778 err = ext4_init_pageio();
4779 if (err) 4779 if (err)
4780 return err; 4780 return err;
4781 err = init_ext4_system_zone(); 4781 err = ext4_init_system_zone();
4782 if (err) 4782 if (err)
4783 goto out5; 4783 goto out5;
4784 ext4_kset = kset_create_and_add("ext4", NULL, fs_kobj); 4784 ext4_kset = kset_create_and_add("ext4", NULL, fs_kobj);
@@ -4788,11 +4788,11 @@ static int __init init_ext4_fs(void)
4788 4788
4789 err = ext4_init_feat_adverts(); 4789 err = ext4_init_feat_adverts();
4790 4790
4791 err = init_ext4_mballoc(); 4791 err = ext4_init_mballoc();
4792 if (err) 4792 if (err)
4793 goto out3; 4793 goto out3;
4794 4794
4795 err = init_ext4_xattr(); 4795 err = ext4_init_xattr();
4796 if (err) 4796 if (err)
4797 goto out2; 4797 goto out2;
4798 err = init_inodecache(); 4798 err = init_inodecache();
@@ -4812,37 +4812,37 @@ out:
4812 unregister_as_ext3(); 4812 unregister_as_ext3();
4813 destroy_inodecache(); 4813 destroy_inodecache();
4814out1: 4814out1:
4815 exit_ext4_xattr(); 4815 ext4_exit_xattr();
4816out2: 4816out2:
4817 exit_ext4_mballoc(); 4817 ext4_exit_mballoc();
4818out3: 4818out3:
4819 kfree(ext4_feat); 4819 kfree(ext4_feat);
4820 remove_proc_entry("fs/ext4", NULL); 4820 remove_proc_entry("fs/ext4", NULL);
4821 kset_unregister(ext4_kset); 4821 kset_unregister(ext4_kset);
4822out4: 4822out4:
4823 exit_ext4_system_zone(); 4823 ext4_exit_system_zone();
4824out5: 4824out5:
4825 exit_ext4_pageio(); 4825 ext4_exit_pageio();
4826 return err; 4826 return err;
4827} 4827}
4828 4828
4829static void __exit exit_ext4_fs(void) 4829static void __exit ext4_exit_fs(void)
4830{ 4830{
4831 ext4_destroy_lazyinit_thread(); 4831 ext4_destroy_lazyinit_thread();
4832 unregister_as_ext2(); 4832 unregister_as_ext2();
4833 unregister_as_ext3(); 4833 unregister_as_ext3();
4834 unregister_filesystem(&ext4_fs_type); 4834 unregister_filesystem(&ext4_fs_type);
4835 destroy_inodecache(); 4835 destroy_inodecache();
4836 exit_ext4_xattr(); 4836 ext4_exit_xattr();
4837 exit_ext4_mballoc(); 4837 ext4_exit_mballoc();
4838 remove_proc_entry("fs/ext4", NULL); 4838 remove_proc_entry("fs/ext4", NULL);
4839 kset_unregister(ext4_kset); 4839 kset_unregister(ext4_kset);
4840 exit_ext4_system_zone(); 4840 ext4_exit_system_zone();
4841 exit_ext4_pageio(); 4841 ext4_exit_pageio();
4842} 4842}
4843 4843
4844MODULE_AUTHOR("Remy Card, Stephen Tweedie, Andrew Morton, Andreas Dilger, Theodore Ts'o and others"); 4844MODULE_AUTHOR("Remy Card, Stephen Tweedie, Andrew Morton, Andreas Dilger, Theodore Ts'o and others");
4845MODULE_DESCRIPTION("Fourth Extended Filesystem"); 4845MODULE_DESCRIPTION("Fourth Extended Filesystem");
4846MODULE_LICENSE("GPL"); 4846MODULE_LICENSE("GPL");
4847module_init(init_ext4_fs) 4847module_init(ext4_init_fs)
4848module_exit(exit_ext4_fs) 4848module_exit(ext4_exit_fs)
diff --git a/fs/ext4/xattr.c b/fs/ext4/xattr.c
index 3a8cd8dff1ad..fa4b899da4b3 100644
--- a/fs/ext4/xattr.c
+++ b/fs/ext4/xattr.c
@@ -1588,7 +1588,7 @@ static void ext4_xattr_rehash(struct ext4_xattr_header *header,
1588#undef BLOCK_HASH_SHIFT 1588#undef BLOCK_HASH_SHIFT
1589 1589
1590int __init 1590int __init
1591init_ext4_xattr(void) 1591ext4_init_xattr(void)
1592{ 1592{
1593 ext4_xattr_cache = mb_cache_create("ext4_xattr", 6); 1593 ext4_xattr_cache = mb_cache_create("ext4_xattr", 6);
1594 if (!ext4_xattr_cache) 1594 if (!ext4_xattr_cache)
@@ -1597,7 +1597,7 @@ init_ext4_xattr(void)
1597} 1597}
1598 1598
1599void 1599void
1600exit_ext4_xattr(void) 1600ext4_exit_xattr(void)
1601{ 1601{
1602 if (ext4_xattr_cache) 1602 if (ext4_xattr_cache)
1603 mb_cache_destroy(ext4_xattr_cache); 1603 mb_cache_destroy(ext4_xattr_cache);
diff --git a/fs/ext4/xattr.h b/fs/ext4/xattr.h
index 518e96e43905..281dd8353652 100644
--- a/fs/ext4/xattr.h
+++ b/fs/ext4/xattr.h
@@ -83,8 +83,8 @@ extern void ext4_xattr_put_super(struct super_block *);
83extern int ext4_expand_extra_isize_ea(struct inode *inode, int new_extra_isize, 83extern int ext4_expand_extra_isize_ea(struct inode *inode, int new_extra_isize,
84 struct ext4_inode *raw_inode, handle_t *handle); 84 struct ext4_inode *raw_inode, handle_t *handle);
85 85
86extern int init_ext4_xattr(void); 86extern int __init ext4_init_xattr(void);
87extern void exit_ext4_xattr(void); 87extern void ext4_exit_xattr(void);
88 88
89extern const struct xattr_handler *ext4_xattr_handlers[]; 89extern const struct xattr_handler *ext4_xattr_handlers[];
90 90
@@ -121,14 +121,14 @@ ext4_xattr_put_super(struct super_block *sb)
121{ 121{
122} 122}
123 123
124static inline int 124static __init inline int
125init_ext4_xattr(void) 125init_ext4_xattr(void)
126{ 126{
127 return 0; 127 return 0;
128} 128}
129 129
130static inline void 130static inline void
131exit_ext4_xattr(void) 131ext4_exit_xattr(void)
132{ 132{
133} 133}
134 134