dlm: add __init and __exit marks to init and exit functions

it moves 365 bytes from .text to .init.text, and 30 bytes from .text to
.exit.text, saves memory.

Signed-off-by: Denis Cheng <crquan@gmail.com>
Signed-off-by: David Teigland <teigland@redhat.com>
This commit is contained in:
Denis Cheng
2008-02-02 01:53:46 +08:00
committed by David Teigland
parent d292c0cc48
commit 30727174b6
6 changed files with 7 additions and 7 deletions

View File

@@ -541,7 +541,7 @@ void dlm_delete_debug_file(struct dlm_ls *ls)
debugfs_remove(ls->ls_debug_locks_dentry);
}
int dlm_register_debugfs(void)
int __init dlm_register_debugfs(void)
{
mutex_init(&debug_buf_lock);
dlm_root = debugfs_create_dir("dlm", NULL);