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