Whamcloud - gitweb
LU-8066 ldlm: move all remaining files from procfs to debugfs
[fs/lustre-release.git] / lustre / ldlm / ldlm_lockd.c
index b1def6d..81ed655 100644 (file)
@@ -2817,11 +2817,9 @@ static int ldlm_setup(void)
        if (!ldlm_svc_kset)
                GOTO(out, -ENOMEM);
 
-#ifdef CONFIG_PROC_FS
-       rc = ldlm_proc_setup();
+       rc = ldlm_debugfs_setup();
        if (rc != 0)
                GOTO(out, rc);
-#endif /* CONFIG_PROC_FS */
 
        memset(&conf, 0, sizeof(conf));
        conf = (typeof(conf)) {
@@ -2854,7 +2852,7 @@ static int ldlm_setup(void)
        };
        ldlm_state->ldlm_cb_service = \
                        ptlrpc_register_service(&conf, ldlm_svc_kset,
-                                               ldlm_svc_proc_dir);
+                                               ldlm_svc_debugfs_dir);
        if (IS_ERR(ldlm_state->ldlm_cb_service)) {
                CERROR("failed to start service\n");
                rc = PTR_ERR(ldlm_state->ldlm_cb_service);
@@ -2898,7 +2896,7 @@ static int ldlm_setup(void)
        };
        ldlm_state->ldlm_cancel_service = \
                        ptlrpc_register_service(&conf, ldlm_svc_kset,
-                                               ldlm_svc_proc_dir);
+                                               ldlm_svc_debugfs_dir);
        if (IS_ERR(ldlm_state->ldlm_cancel_service)) {
                CERROR("failed to start service\n");
                rc = PTR_ERR(ldlm_state->ldlm_cancel_service);
@@ -3014,7 +3012,7 @@ static int ldlm_cleanup(void)
                kobject_put(ldlm_kobj);
        }
 
-       ldlm_proc_cleanup();
+       ldlm_debugfs_cleanup();
 
 #ifdef HAVE_SERVER_SUPPORT
        if (expired_lock_thread_state != ELT_STOPPED) {