libceph, ceph: add __init attribution to init funcitons
[linux-2.6-block.git] / net / ceph / debugfs.c
index 1eef6806aa1a01e1901f7f57d759a2a52c6cd1df..02952605d121871200d437d13a832241b3beb5a4 100644 (file)
@@ -389,7 +389,7 @@ CEPH_DEFINE_SHOW_FUNC(monc_show)
 CEPH_DEFINE_SHOW_FUNC(osdc_show)
 CEPH_DEFINE_SHOW_FUNC(client_options_show)
 
-int ceph_debugfs_init(void)
+int __init ceph_debugfs_init(void)
 {
        ceph_debugfs_dir = debugfs_create_dir("ceph", NULL);
        if (!ceph_debugfs_dir)
@@ -418,7 +418,7 @@ int ceph_debugfs_client_init(struct ceph_client *client)
                goto out;
 
        client->monc.debugfs_file = debugfs_create_file("monc",
-                                                     0600,
+                                                     0400,
                                                      client->debugfs_dir,
                                                      client,
                                                      &monc_show_fops);
@@ -426,7 +426,7 @@ int ceph_debugfs_client_init(struct ceph_client *client)
                goto out;
 
        client->osdc.debugfs_file = debugfs_create_file("osdc",
-                                                     0600,
+                                                     0400,
                                                      client->debugfs_dir,
                                                      client,
                                                      &osdc_show_fops);
@@ -434,7 +434,7 @@ int ceph_debugfs_client_init(struct ceph_client *client)
                goto out;
 
        client->debugfs_monmap = debugfs_create_file("monmap",
-                                       0600,
+                                       0400,
                                        client->debugfs_dir,
                                        client,
                                        &monmap_show_fops);
@@ -442,7 +442,7 @@ int ceph_debugfs_client_init(struct ceph_client *client)
                goto out;
 
        client->debugfs_osdmap = debugfs_create_file("osdmap",
-                                       0600,
+                                       0400,
                                        client->debugfs_dir,
                                        client,
                                        &osdmap_show_fops);
@@ -450,7 +450,7 @@ int ceph_debugfs_client_init(struct ceph_client *client)
                goto out;
 
        client->debugfs_options = debugfs_create_file("client_options",
-                                       0600,
+                                       0400,
                                        client->debugfs_dir,
                                        client,
                                        &client_options_show_fops);
@@ -477,7 +477,7 @@ void ceph_debugfs_client_cleanup(struct ceph_client *client)
 
 #else  /* CONFIG_DEBUG_FS */
 
-int ceph_debugfs_init(void)
+int __init ceph_debugfs_init(void)
 {
        return 0;
 }
@@ -496,6 +496,3 @@ void ceph_debugfs_client_cleanup(struct ceph_client *client)
 }
 
 #endif  /* CONFIG_DEBUG_FS */
-
-EXPORT_SYMBOL(ceph_debugfs_init);
-EXPORT_SYMBOL(ceph_debugfs_cleanup);