Skip to content

Commit

Permalink
[XFS] add __init/__exit mark to specific init/cleanup functions
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Lachlan McIlroy authored and Lachlan McIlroy committed Feb 7, 2008
1 parent 450790a commit de2eeea
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion fs/xfs/linux-2.6/xfs_super.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion fs/xfs/linux-2.6/xfs_vnode.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions fs/xfs/support/ktrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -36,7 +36,7 @@ ktrace_init(int zentries)
ASSERT(ktrace_ent_zone);
}

void
void __exit
ktrace_uninit(void)
{
kmem_zone_destroy(ktrace_hdr_zone);
Expand Down
2 changes: 1 addition & 1 deletion fs/xfs/support/uuid.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ uuid_table_remove(uuid_t *uuid)
mutex_unlock(&uuid_monitor);
}

void
void __init
uuid_init(void)
{
mutex_init(&uuid_monitor);
Expand Down
4 changes: 2 additions & 2 deletions fs/xfs/xfs_vfsops.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
#include "xfs_vfsops.h"


int
int __init
xfs_init(void)
{
#ifdef XFS_DABUF_DEBUG
Expand Down Expand Up @@ -147,7 +147,7 @@ xfs_init(void)
return 0;
}

void
void __exit
xfs_cleanup(void)
{
extern kmem_zone_t *xfs_inode_zone;
Expand Down

0 comments on commit de2eeea

Please sign in to comment.