[XFS] add __init/__exit mark to specific init/cleanup functions

SGI-PV: 971186
SGI-Modid: xfs-linux-melb:xfs-kern:30459a

Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
Signed-off-by: Denis Cheng <crquan@gmail.com>

authored by Lachlan McIlroy and committed by Lachlan McIlroy de2eeea6 450790a2

+7 -7
+1 -1
fs/xfs/linux-2.6/xfs_super.c
··· 849 inode_init_once(vn_to_inode((bhv_vnode_t *)vnode)); 850 } 851 852 - STATIC int 853 xfs_init_zones(void) 854 { 855 xfs_vnode_zone = kmem_zone_init_flags(sizeof(bhv_vnode_t), "xfs_vnode",
··· 849 inode_init_once(vn_to_inode((bhv_vnode_t *)vnode)); 850 } 851 852 + STATIC int __init 853 xfs_init_zones(void) 854 { 855 xfs_vnode_zone = kmem_zone_init_flags(sizeof(bhv_vnode_t), "xfs_vnode",
+1 -1
fs/xfs/linux-2.6/xfs_vnode.c
··· 40 #define vptosync(v) (&vsync[((unsigned long)v) % NVSYNC]) 41 static wait_queue_head_t vsync[NVSYNC]; 42 43 - void 44 vn_init(void) 45 { 46 int i;
··· 40 #define vptosync(v) (&vsync[((unsigned long)v) % NVSYNC]) 41 static wait_queue_head_t vsync[NVSYNC]; 42 43 + void __init 44 vn_init(void) 45 { 46 int i;
+2 -2
fs/xfs/support/ktrace.c
··· 21 static kmem_zone_t *ktrace_ent_zone; 22 static int ktrace_zentries; 23 24 - void 25 ktrace_init(int zentries) 26 { 27 ktrace_zentries = zentries; ··· 36 ASSERT(ktrace_ent_zone); 37 } 38 39 - void 40 ktrace_uninit(void) 41 { 42 kmem_zone_destroy(ktrace_hdr_zone);
··· 21 static kmem_zone_t *ktrace_ent_zone; 22 static int ktrace_zentries; 23 24 + void __init 25 ktrace_init(int zentries) 26 { 27 ktrace_zentries = zentries; ··· 36 ASSERT(ktrace_ent_zone); 37 } 38 39 + void __exit 40 ktrace_uninit(void) 41 { 42 kmem_zone_destroy(ktrace_hdr_zone);
+1 -1
fs/xfs/support/uuid.c
··· 133 mutex_unlock(&uuid_monitor); 134 } 135 136 - void 137 uuid_init(void) 138 { 139 mutex_init(&uuid_monitor);
··· 133 mutex_unlock(&uuid_monitor); 134 } 135 136 + void __init 137 uuid_init(void) 138 { 139 mutex_init(&uuid_monitor);
+2 -2
fs/xfs/xfs_vfsops.c
··· 58 #include "xfs_vfsops.h" 59 60 61 - int 62 xfs_init(void) 63 { 64 #ifdef XFS_DABUF_DEBUG ··· 147 return 0; 148 } 149 150 - void 151 xfs_cleanup(void) 152 { 153 extern kmem_zone_t *xfs_inode_zone;
··· 58 #include "xfs_vfsops.h" 59 60 61 + int __init 62 xfs_init(void) 63 { 64 #ifdef XFS_DABUF_DEBUG ··· 147 return 0; 148 } 149 150 + void __exit 151 xfs_cleanup(void) 152 { 153 extern kmem_zone_t *xfs_inode_zone;