Skip to content

Commit

Permalink
[PATCH] OCFS2: __init / __exit problem
Browse files Browse the repository at this point in the history
Functions called by __init funtions mustn't be __exit.

Reported by Jan-Benedict Glaw <[email protected]>.

Signed-off-by: Adrian Bunk <[email protected]>
Signed-off-by: Mark Fasheh <[email protected]>
  • Loading branch information
AdrianBunk authored and Mark Fasheh committed Feb 3, 2006
1 parent 8c5a950 commit 0c6c98f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion fs/ocfs2/extent_map.c
Original file line number Diff line number Diff line change
Expand Up @@ -988,7 +988,7 @@ int __init init_ocfs2_extent_maps(void)
return 0;
}

void __exit exit_ocfs2_extent_maps(void)
void exit_ocfs2_extent_maps(void)
{
kmem_cache_destroy(ocfs2_em_ent_cachep);
}
2 changes: 1 addition & 1 deletion fs/ocfs2/uptodate.c
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ int __init init_ocfs2_uptodate_cache(void)
return 0;
}

void __exit exit_ocfs2_uptodate_cache(void)
void exit_ocfs2_uptodate_cache(void)
{
if (ocfs2_uptodate_cachep)
kmem_cache_destroy(ocfs2_uptodate_cachep);
Expand Down
2 changes: 1 addition & 1 deletion fs/ocfs2/uptodate.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#define OCFS2_UPTODATE_H

int __init init_ocfs2_uptodate_cache(void);
void __exit exit_ocfs2_uptodate_cache(void);
void exit_ocfs2_uptodate_cache(void);

void ocfs2_metadata_cache_init(struct inode *inode);
void ocfs2_metadata_cache_purge(struct inode *inode);
Expand Down

0 comments on commit 0c6c98f

Please sign in to comment.