Whamcloud - gitweb
LU-5275 lprocfs: remove last of non seq data structs and functions.
[fs/lustre-release.git] / lustre / ldlm / ldlm_resource.c
index bed49ee..cb5c05f 100644 (file)
@@ -88,7 +88,7 @@ LPROC_SEQ_FOPS_RO_TYPE(ldlm, uint);
 int ldlm_proc_setup(void)
 {
        int rc;
-       struct lprocfs_seq_vars list[] = {
+       struct lprocfs_vars list[] = {
                { .name =       "dump_namespaces",
                  .fops =       &ldlm_dump_ns_fops,
                  .proc_mode =  0222 },
@@ -102,34 +102,31 @@ int ldlm_proc_setup(void)
        ENTRY;
        LASSERT(ldlm_ns_proc_dir == NULL);
 
-       ldlm_type_proc_dir = lprocfs_seq_register(OBD_LDLM_DEVICENAME,
-                                                       proc_lustre_root,
-                                                       NULL, NULL);
+       ldlm_type_proc_dir = lprocfs_register(OBD_LDLM_DEVICENAME,
+                                             proc_lustre_root, NULL, NULL);
        if (IS_ERR(ldlm_type_proc_dir)) {
                CERROR("LProcFS failed in ldlm-init\n");
                rc = PTR_ERR(ldlm_type_proc_dir);
                GOTO(err, rc);
        }
 
-       ldlm_ns_proc_dir = lprocfs_seq_register("namespaces",
-                                               ldlm_type_proc_dir,
-                                               NULL, NULL);
+       ldlm_ns_proc_dir = lprocfs_register("namespaces", ldlm_type_proc_dir,
+                                           NULL, NULL);
        if (IS_ERR(ldlm_ns_proc_dir)) {
                CERROR("LProcFS failed in ldlm-init\n");
                rc = PTR_ERR(ldlm_ns_proc_dir);
                GOTO(err_type, rc);
        }
 
-       ldlm_svc_proc_dir = lprocfs_seq_register("services",
-                                               ldlm_type_proc_dir,
-                                               NULL, NULL);
+       ldlm_svc_proc_dir = lprocfs_register("services", ldlm_type_proc_dir,
+                                            NULL, NULL);
        if (IS_ERR(ldlm_svc_proc_dir)) {
                CERROR("LProcFS failed in ldlm-init\n");
                rc = PTR_ERR(ldlm_svc_proc_dir);
                GOTO(err_ns, rc);
        }
 
-       rc = lprocfs_seq_add_vars(ldlm_type_proc_dir, list, NULL);
+       rc = lprocfs_add_vars(ldlm_type_proc_dir, list, NULL);
        if (rc != 0) {
                CERROR("LProcFS failed in ldlm-init\n");
                GOTO(err_svc, rc);
@@ -326,7 +323,7 @@ void ldlm_namespace_proc_unregister(struct ldlm_namespace *ns)
 
 int ldlm_namespace_proc_register(struct ldlm_namespace *ns)
 {
-       struct lprocfs_seq_vars lock_vars[2];
+       struct lprocfs_vars lock_vars[2];
         char lock_name[MAX_STRING_SIZE + 1];
        struct proc_dir_entry *ns_pde;