aboutsummaryrefslogtreecommitdiffstats
path: root/fs/dlm/netlink.c
diff options
context:
space:
mode:
authorDenis Cheng <crquan@gmail.com>2008-02-01 12:53:46 -0500
committerDavid Teigland <teigland@redhat.com>2008-02-07 00:41:22 -0500
commit30727174b6273c67fa96fb818fe5bdde1ad70e5c (patch)
tree807a66e114555caf3dc07fc818d2dac2c62dff47 /fs/dlm/netlink.c
parentd292c0cc489fa642799494bddbd7c94d11f7bbc1 (diff)
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>
Diffstat (limited to 'fs/dlm/netlink.c')
-rw-r--r--fs/dlm/netlink.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/dlm/netlink.c b/fs/dlm/netlink.c
index 90374b848761..714593621f4f 100644
--- a/fs/dlm/netlink.c
+++ b/fs/dlm/netlink.c
@@ -78,7 +78,7 @@ static struct genl_ops dlm_nl_ops = {
78 .doit = user_cmd, 78 .doit = user_cmd,
79}; 79};
80 80
81int dlm_netlink_init(void) 81int __init dlm_netlink_init(void)
82{ 82{
83 int rv; 83 int rv;
84 84
@@ -95,7 +95,7 @@ int dlm_netlink_init(void)
95 return rv; 95 return rv;
96} 96}
97 97
98void dlm_netlink_exit(void) 98void __exit dlm_netlink_exit(void)
99{ 99{
100 genl_unregister_ops(&family, &dlm_nl_ops); 100 genl_unregister_ops(&family, &dlm_nl_ops);
101 genl_unregister_family(&family); 101 genl_unregister_family(&family);