diff options
author | Lachlan McIlroy <lachlan@sgi.com> | 2008-02-05 21:37:56 -0500 |
---|---|---|
committer | Lachlan McIlroy <lachlan@redback.melbourne.sgi.com> | 2008-02-07 02:25:19 -0500 |
commit | de2eeea609b55e8c3994133a565b39edeaaaaf69 (patch) | |
tree | f0726491c2667427e643e5e26808b0c250884f4e /fs/xfs | |
parent | 450790a2c51e6d9d47ed30dbdcf486656b8e186f (diff) |
[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>
Diffstat (limited to 'fs/xfs')
-rw-r--r-- | fs/xfs/linux-2.6/xfs_super.c | 2 | ||||
-rw-r--r-- | fs/xfs/linux-2.6/xfs_vnode.c | 2 | ||||
-rw-r--r-- | fs/xfs/support/ktrace.c | 4 | ||||
-rw-r--r-- | fs/xfs/support/uuid.c | 2 | ||||
-rw-r--r-- | fs/xfs/xfs_vfsops.c | 4 |
5 files changed, 7 insertions, 7 deletions
diff --git a/fs/xfs/linux-2.6/xfs_super.c b/fs/xfs/linux-2.6/xfs_super.c index 56b6c6985d90..21dfc9da235e 100644 --- a/fs/xfs/linux-2.6/xfs_super.c +++ b/fs/xfs/linux-2.6/xfs_super.c | |||
@@ -849,7 +849,7 @@ xfs_fs_inode_init_once( | |||
849 | inode_init_once(vn_to_inode((bhv_vnode_t *)vnode)); | 849 | inode_init_once(vn_to_inode((bhv_vnode_t *)vnode)); |
850 | } | 850 | } |
851 | 851 | ||
852 | STATIC int | 852 | STATIC int __init |
853 | xfs_init_zones(void) | 853 | xfs_init_zones(void) |
854 | { | 854 | { |
855 | xfs_vnode_zone = kmem_zone_init_flags(sizeof(bhv_vnode_t), "xfs_vnode", | 855 | xfs_vnode_zone = kmem_zone_init_flags(sizeof(bhv_vnode_t), "xfs_vnode", |
diff --git a/fs/xfs/linux-2.6/xfs_vnode.c b/fs/xfs/linux-2.6/xfs_vnode.c index 44a48ef90073..bc7afe007338 100644 --- a/fs/xfs/linux-2.6/xfs_vnode.c +++ b/fs/xfs/linux-2.6/xfs_vnode.c | |||
@@ -40,7 +40,7 @@ | |||
40 | #define vptosync(v) (&vsync[((unsigned long)v) % NVSYNC]) | 40 | #define vptosync(v) (&vsync[((unsigned long)v) % NVSYNC]) |
41 | static wait_queue_head_t vsync[NVSYNC]; | 41 | static wait_queue_head_t vsync[NVSYNC]; |
42 | 42 | ||
43 | void | 43 | void __init |
44 | vn_init(void) | 44 | vn_init(void) |
45 | { | 45 | { |
46 | int i; | 46 | int i; |
diff --git a/fs/xfs/support/ktrace.c b/fs/xfs/support/ktrace.c index 119611ec21d3..129067cfcb86 100644 --- a/fs/xfs/support/ktrace.c +++ b/fs/xfs/support/ktrace.c | |||
@@ -21,7 +21,7 @@ static kmem_zone_t *ktrace_hdr_zone; | |||
21 | static kmem_zone_t *ktrace_ent_zone; | 21 | static kmem_zone_t *ktrace_ent_zone; |
22 | static int ktrace_zentries; | 22 | static int ktrace_zentries; |
23 | 23 | ||
24 | void | 24 | void __init |
25 | ktrace_init(int zentries) | 25 | ktrace_init(int zentries) |
26 | { | 26 | { |
27 | ktrace_zentries = zentries; | 27 | ktrace_zentries = zentries; |
@@ -36,7 +36,7 @@ ktrace_init(int zentries) | |||
36 | ASSERT(ktrace_ent_zone); | 36 | ASSERT(ktrace_ent_zone); |
37 | } | 37 | } |
38 | 38 | ||
39 | void | 39 | void __exit |
40 | ktrace_uninit(void) | 40 | ktrace_uninit(void) |
41 | { | 41 | { |
42 | kmem_zone_destroy(ktrace_hdr_zone); | 42 | kmem_zone_destroy(ktrace_hdr_zone); |
diff --git a/fs/xfs/support/uuid.c b/fs/xfs/support/uuid.c index e157015c70ff..493a6ecf8590 100644 --- a/fs/xfs/support/uuid.c +++ b/fs/xfs/support/uuid.c | |||
@@ -133,7 +133,7 @@ uuid_table_remove(uuid_t *uuid) | |||
133 | mutex_unlock(&uuid_monitor); | 133 | mutex_unlock(&uuid_monitor); |
134 | } | 134 | } |
135 | 135 | ||
136 | void | 136 | void __init |
137 | uuid_init(void) | 137 | uuid_init(void) |
138 | { | 138 | { |
139 | mutex_init(&uuid_monitor); | 139 | mutex_init(&uuid_monitor); |
diff --git a/fs/xfs/xfs_vfsops.c b/fs/xfs/xfs_vfsops.c index be4e0daaf6bd..413587f02155 100644 --- a/fs/xfs/xfs_vfsops.c +++ b/fs/xfs/xfs_vfsops.c | |||
@@ -58,7 +58,7 @@ | |||
58 | #include "xfs_vfsops.h" | 58 | #include "xfs_vfsops.h" |
59 | 59 | ||
60 | 60 | ||
61 | int | 61 | int __init |
62 | xfs_init(void) | 62 | xfs_init(void) |
63 | { | 63 | { |
64 | #ifdef XFS_DABUF_DEBUG | 64 | #ifdef XFS_DABUF_DEBUG |
@@ -147,7 +147,7 @@ xfs_init(void) | |||
147 | return 0; | 147 | return 0; |
148 | } | 148 | } |
149 | 149 | ||
150 | void | 150 | void __exit |
151 | xfs_cleanup(void) | 151 | xfs_cleanup(void) |
152 | { | 152 | { |
153 | extern kmem_zone_t *xfs_inode_zone; | 153 | extern kmem_zone_t *xfs_inode_zone; |