Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0c6c98fb authored by Adrian Bunk's avatar Adrian Bunk Committed by Mark Fasheh
Browse files

[PATCH] OCFS2: __init / __exit problem



Functions called by __init funtions mustn't be __exit.

Reported by Jan-Benedict Glaw <jbglaw@lug-owl.de>.

Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
Signed-off-by: default avatarMark Fasheh <mark.fasheh@oracle.com>
parent 8c5a950c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
}
+1 −1
Original line number Diff line number Diff line
@@ -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);
+1 −1
Original line number Diff line number Diff line
@@ -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);