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

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>

+34 -34
+2 -2
fs/ext4/block_validity.c
··· 29 29 30 30 static struct kmem_cache *ext4_system_zone_cachep; 31 31 32 - int __init init_ext4_system_zone(void) 32 + int __init ext4_init_system_zone(void) 33 33 { 34 34 ext4_system_zone_cachep = KMEM_CACHE(ext4_system_zone, 0); 35 35 if (ext4_system_zone_cachep == NULL) ··· 37 37 return 0; 38 38 } 39 39 40 - void exit_ext4_system_zone(void) 40 + void ext4_exit_system_zone(void) 41 41 { 42 42 kmem_cache_destroy(ext4_system_zone_cachep); 43 43 }
+6 -6
fs/ext4/ext4.h
··· 1684 1684 struct ext4_allocation_request *, int *); 1685 1685 extern int ext4_mb_reserve_blocks(struct super_block *, int); 1686 1686 extern void ext4_discard_preallocations(struct inode *); 1687 - extern int __init init_ext4_mballoc(void); 1688 - extern void exit_ext4_mballoc(void); 1687 + extern int __init ext4_init_mballoc(void); 1688 + extern void ext4_exit_mballoc(void); 1689 1689 extern void ext4_free_blocks(handle_t *handle, struct inode *inode, 1690 1690 struct buffer_head *bh, ext4_fsblk_t block, 1691 1691 unsigned long count, int flags); ··· 2040 2040 /* block_validity */ 2041 2041 extern void ext4_release_system_zone(struct super_block *sb); 2042 2042 extern int ext4_setup_system_zone(struct super_block *sb); 2043 - extern int __init init_ext4_system_zone(void); 2044 - extern void exit_ext4_system_zone(void); 2043 + extern int __init ext4_init_system_zone(void); 2044 + extern void ext4_exit_system_zone(void); 2045 2045 extern int ext4_data_block_valid(struct ext4_sb_info *sbi, 2046 2046 ext4_fsblk_t start_blk, 2047 2047 unsigned int count); ··· 2070 2070 __u64 len, __u64 *moved_len); 2071 2071 2072 2072 /* page-io.c */ 2073 - extern int __init init_ext4_pageio(void); 2074 - extern void exit_ext4_pageio(void); 2073 + extern int __init ext4_init_pageio(void); 2074 + extern void ext4_exit_pageio(void); 2075 2075 extern void ext4_free_io_end(ext4_io_end_t *io); 2076 2076 extern ext4_io_end_t *ext4_init_io_end(struct inode *inode, gfp_t flags); 2077 2077 extern int ext4_end_io_nolock(ext4_io_end_t *io);
+2 -2
fs/ext4/mballoc.c
··· 2705 2705 2706 2706 #endif 2707 2707 2708 - int __init init_ext4_mballoc(void) 2708 + int __init ext4_init_mballoc(void) 2709 2709 { 2710 2710 ext4_pspace_cachep = KMEM_CACHE(ext4_prealloc_space, 2711 2711 SLAB_RECLAIM_ACCOUNT); ··· 2730 2730 return 0; 2731 2731 } 2732 2732 2733 - void exit_ext4_mballoc(void) 2733 + void ext4_exit_mballoc(void) 2734 2734 { 2735 2735 int i; 2736 2736 /*
+2 -2
fs/ext4/page-io.c
··· 32 32 33 33 static struct kmem_cache *io_page_cachep, *io_end_cachep; 34 34 35 - int __init init_ext4_pageio(void) 35 + int __init ext4_init_pageio(void) 36 36 { 37 37 io_page_cachep = KMEM_CACHE(ext4_io_page, SLAB_RECLAIM_ACCOUNT); 38 38 if (io_page_cachep == NULL) ··· 46 46 return 0; 47 47 } 48 48 49 - void exit_ext4_pageio(void) 49 + void ext4_exit_pageio(void) 50 50 { 51 51 kmem_cache_destroy(io_end_cachep); 52 52 kmem_cache_destroy(io_page_cachep);
+16 -16
fs/ext4/super.c
··· 4770 4770 return ret; 4771 4771 } 4772 4772 4773 - static int __init init_ext4_fs(void) 4773 + static int __init ext4_init_fs(void) 4774 4774 { 4775 4775 int err; 4776 4776 4777 4777 ext4_check_flag_values(); 4778 - err = init_ext4_pageio(); 4778 + err = ext4_init_pageio(); 4779 4779 if (err) 4780 4780 return err; 4781 - err = init_ext4_system_zone(); 4781 + err = ext4_init_system_zone(); 4782 4782 if (err) 4783 4783 goto out5; 4784 4784 ext4_kset = kset_create_and_add("ext4", NULL, fs_kobj); ··· 4788 4788 4789 4789 err = ext4_init_feat_adverts(); 4790 4790 4791 - err = init_ext4_mballoc(); 4791 + err = ext4_init_mballoc(); 4792 4792 if (err) 4793 4793 goto out3; 4794 4794 4795 - err = init_ext4_xattr(); 4795 + err = ext4_init_xattr(); 4796 4796 if (err) 4797 4797 goto out2; 4798 4798 err = init_inodecache(); ··· 4812 4812 unregister_as_ext3(); 4813 4813 destroy_inodecache(); 4814 4814 out1: 4815 - exit_ext4_xattr(); 4815 + ext4_exit_xattr(); 4816 4816 out2: 4817 - exit_ext4_mballoc(); 4817 + ext4_exit_mballoc(); 4818 4818 out3: 4819 4819 kfree(ext4_feat); 4820 4820 remove_proc_entry("fs/ext4", NULL); 4821 4821 kset_unregister(ext4_kset); 4822 4822 out4: 4823 - exit_ext4_system_zone(); 4823 + ext4_exit_system_zone(); 4824 4824 out5: 4825 - exit_ext4_pageio(); 4825 + ext4_exit_pageio(); 4826 4826 return err; 4827 4827 } 4828 4828 4829 - static void __exit exit_ext4_fs(void) 4829 + static void __exit ext4_exit_fs(void) 4830 4830 { 4831 4831 ext4_destroy_lazyinit_thread(); 4832 4832 unregister_as_ext2(); 4833 4833 unregister_as_ext3(); 4834 4834 unregister_filesystem(&ext4_fs_type); 4835 4835 destroy_inodecache(); 4836 - exit_ext4_xattr(); 4837 - exit_ext4_mballoc(); 4836 + ext4_exit_xattr(); 4837 + ext4_exit_mballoc(); 4838 4838 remove_proc_entry("fs/ext4", NULL); 4839 4839 kset_unregister(ext4_kset); 4840 - exit_ext4_system_zone(); 4841 - exit_ext4_pageio(); 4840 + ext4_exit_system_zone(); 4841 + ext4_exit_pageio(); 4842 4842 } 4843 4843 4844 4844 MODULE_AUTHOR("Remy Card, Stephen Tweedie, Andrew Morton, Andreas Dilger, Theodore Ts'o and others"); 4845 4845 MODULE_DESCRIPTION("Fourth Extended Filesystem"); 4846 4846 MODULE_LICENSE("GPL"); 4847 - module_init(init_ext4_fs) 4848 - module_exit(exit_ext4_fs) 4847 + module_init(ext4_init_fs) 4848 + module_exit(ext4_exit_fs)
+2 -2
fs/ext4/xattr.c
··· 1588 1588 #undef BLOCK_HASH_SHIFT 1589 1589 1590 1590 int __init 1591 - init_ext4_xattr(void) 1591 + ext4_init_xattr(void) 1592 1592 { 1593 1593 ext4_xattr_cache = mb_cache_create("ext4_xattr", 6); 1594 1594 if (!ext4_xattr_cache) ··· 1597 1597 } 1598 1598 1599 1599 void 1600 - exit_ext4_xattr(void) 1600 + ext4_exit_xattr(void) 1601 1601 { 1602 1602 if (ext4_xattr_cache) 1603 1603 mb_cache_destroy(ext4_xattr_cache);
+4 -4
fs/ext4/xattr.h
··· 83 83 extern int ext4_expand_extra_isize_ea(struct inode *inode, int new_extra_isize, 84 84 struct ext4_inode *raw_inode, handle_t *handle); 85 85 86 - extern int init_ext4_xattr(void); 87 - extern void exit_ext4_xattr(void); 86 + extern int __init ext4_init_xattr(void); 87 + extern void ext4_exit_xattr(void); 88 88 89 89 extern const struct xattr_handler *ext4_xattr_handlers[]; 90 90 ··· 121 121 { 122 122 } 123 123 124 - static inline int 124 + static __init inline int 125 125 init_ext4_xattr(void) 126 126 { 127 127 return 0; 128 128 } 129 129 130 130 static inline void 131 - exit_ext4_xattr(void) 131 + ext4_exit_xattr(void) 132 132 { 133 133 } 134 134