[XFS] add __init/__exit mark to specific init/cleanup functions
authorLachlan McIlroy <lachlan@sgi.com>
Wed, 6 Feb 2008 02:37:56 +0000 (13:37 +1100)
committerLachlan McIlroy <lachlan@redback.melbourne.sgi.com>
Thu, 7 Feb 2008 07:25:19 +0000 (18:25 +1100)
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>
fs/xfs/linux-2.6/xfs_super.c
fs/xfs/linux-2.6/xfs_vnode.c
fs/xfs/support/ktrace.c
fs/xfs/support/uuid.c
fs/xfs/xfs_vfsops.c

index 56b6c6985d9039b2543e58addc7f75138338e1a9..21dfc9da235e623ef77a330076edb6269f375f48 100644 (file)
@@ -849,7 +849,7 @@ xfs_fs_inode_init_once(
        inode_init_once(vn_to_inode((bhv_vnode_t *)vnode));
 }
 
-STATIC int
+STATIC int __init
 xfs_init_zones(void)
 {
        xfs_vnode_zone = kmem_zone_init_flags(sizeof(bhv_vnode_t), "xfs_vnode",
index 44a48ef900736056c43ea1eec6b1612183585b55..bc7afe00733801c869840881051f966ea9b553bf 100644 (file)
@@ -40,7 +40,7 @@
 #define vptosync(v)             (&vsync[((unsigned long)v) % NVSYNC])
 static wait_queue_head_t vsync[NVSYNC];
 
-void
+void __init
 vn_init(void)
 {
        int i;
index 119611ec21d3e07c6329e8ad5a52c20d3817e3e2..129067cfcb86eba3f9fb54d18a27a3c47bf7ba22 100644 (file)
@@ -21,7 +21,7 @@ static kmem_zone_t *ktrace_hdr_zone;
 static kmem_zone_t *ktrace_ent_zone;
 static int          ktrace_zentries;
 
-void
+void __init
 ktrace_init(int zentries)
 {
        ktrace_zentries = zentries;
@@ -36,7 +36,7 @@ ktrace_init(int zentries)
        ASSERT(ktrace_ent_zone);
 }
 
-void
+void __exit
 ktrace_uninit(void)
 {
        kmem_zone_destroy(ktrace_hdr_zone);
index e157015c70ffcad4ed7ee0e989e4714fb55db526..493a6ecf8590c5e697bcf7fe116875ae14ce90e3 100644 (file)
@@ -133,7 +133,7 @@ uuid_table_remove(uuid_t *uuid)
        mutex_unlock(&uuid_monitor);
 }
 
-void
+void __init
 uuid_init(void)
 {
        mutex_init(&uuid_monitor);
index be4e0daaf6bdb215e69a60d5eb9a8162bebbad9b..413587f0215578760d0109dc3825ceb296ce0fab 100644 (file)
@@ -58,7 +58,7 @@
 #include "xfs_vfsops.h"
 
 
-int
+int __init
 xfs_init(void)
 {
 #ifdef XFS_DABUF_DEBUG
@@ -147,7 +147,7 @@ xfs_init(void)
        return 0;
 }
 
-void
+void __exit
 xfs_cleanup(void)
 {
        extern kmem_zone_t      *xfs_inode_zone;