Commit de2eeea6 authored by Lachlan McIlroy's avatar Lachlan McIlroy Committed by Lachlan McIlroy

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

SGI-PV: 971186
SGI-Modid: xfs-linux-melb:xfs-kern:30459a
Signed-off-by: default avatarLachlan McIlroy <lachlan@sgi.com>
Signed-off-by: default avatarDenis Cheng <crquan@gmail.com>
parent 450790a2
...@@ -849,7 +849,7 @@ xfs_fs_inode_init_once( ...@@ -849,7 +849,7 @@ xfs_fs_inode_init_once(
inode_init_once(vn_to_inode((bhv_vnode_t *)vnode)); inode_init_once(vn_to_inode((bhv_vnode_t *)vnode));
} }
STATIC int STATIC int __init
xfs_init_zones(void) xfs_init_zones(void)
{ {
xfs_vnode_zone = kmem_zone_init_flags(sizeof(bhv_vnode_t), "xfs_vnode", xfs_vnode_zone = kmem_zone_init_flags(sizeof(bhv_vnode_t), "xfs_vnode",
......
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
#define vptosync(v) (&vsync[((unsigned long)v) % NVSYNC]) #define vptosync(v) (&vsync[((unsigned long)v) % NVSYNC])
static wait_queue_head_t vsync[NVSYNC]; static wait_queue_head_t vsync[NVSYNC];
void void __init
vn_init(void) vn_init(void)
{ {
int i; int i;
......
...@@ -21,7 +21,7 @@ static kmem_zone_t *ktrace_hdr_zone; ...@@ -21,7 +21,7 @@ static kmem_zone_t *ktrace_hdr_zone;
static kmem_zone_t *ktrace_ent_zone; static kmem_zone_t *ktrace_ent_zone;
static int ktrace_zentries; static int ktrace_zentries;
void void __init
ktrace_init(int zentries) ktrace_init(int zentries)
{ {
ktrace_zentries = zentries; ktrace_zentries = zentries;
...@@ -36,7 +36,7 @@ ktrace_init(int zentries) ...@@ -36,7 +36,7 @@ ktrace_init(int zentries)
ASSERT(ktrace_ent_zone); ASSERT(ktrace_ent_zone);
} }
void void __exit
ktrace_uninit(void) ktrace_uninit(void)
{ {
kmem_zone_destroy(ktrace_hdr_zone); kmem_zone_destroy(ktrace_hdr_zone);
......
...@@ -133,7 +133,7 @@ uuid_table_remove(uuid_t *uuid) ...@@ -133,7 +133,7 @@ uuid_table_remove(uuid_t *uuid)
mutex_unlock(&uuid_monitor); mutex_unlock(&uuid_monitor);
} }
void void __init
uuid_init(void) uuid_init(void)
{ {
mutex_init(&uuid_monitor); mutex_init(&uuid_monitor);
......
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
#include "xfs_vfsops.h" #include "xfs_vfsops.h"
int int __init
xfs_init(void) xfs_init(void)
{ {
#ifdef XFS_DABUF_DEBUG #ifdef XFS_DABUF_DEBUG
...@@ -147,7 +147,7 @@ xfs_init(void) ...@@ -147,7 +147,7 @@ xfs_init(void)
return 0; return 0;
} }
void void __exit
xfs_cleanup(void) xfs_cleanup(void)
{ {
extern kmem_zone_t *xfs_inode_zone; extern kmem_zone_t *xfs_inode_zone;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment