Whamcloud - gitweb
LU-2675 llog: remove obd_llog_init() and obd_llod_finish()
[fs/lustre-release.git] / lustre / obdclass / lprocfs_status_server.c
index 3acf811..a4541cf 100644 (file)
@@ -191,8 +191,8 @@ int lprocfs_exp_print_hash_seq(cfs_hash_t *hs, cfs_hash_bd_t *bd,
        struct obd_export *exp = cfs_hash_object(hs, hnode);
 
        if (exp->exp_lock_hash != NULL) {
-               cfs_hash_debug_header_seq(m);
-               cfs_hash_debug_str_seq(hs, m);
+               cfs_hash_debug_header(m);
+               cfs_hash_debug_str(hs, m);
        }
        return 0;
 }
@@ -342,22 +342,16 @@ int lprocfs_exp_setup(struct obd_export *exp, lnet_nid_t *nid, int *newnid)
                GOTO(destroy_new_ns, rc);
        }
 
-       entry = lprocfs_add_simple(new_stat->nid_proc, "uuid",
-#ifndef HAVE_ONLY_PROCFS_SEQ
-                                  NULL, NULL,
-#endif
-                                  new_stat, &lprocfs_exp_uuid_fops);
+       entry = lprocfs_add_simple(new_stat->nid_proc, "uuid", new_stat,
+                                  &lprocfs_exp_uuid_fops);
        if (IS_ERR(entry)) {
                CWARN("Error adding the NID stats file\n");
                rc = PTR_ERR(entry);
                GOTO(destroy_new_ns, rc);
        }
 
-       entry = lprocfs_add_simple(new_stat->nid_proc, "hash",
-#ifndef HAVE_ONLY_PROCFS_SEQ
-                                  NULL, NULL,
-#endif
-                                  new_stat, &lprocfs_exp_hash_fops);
+       entry = lprocfs_add_simple(new_stat->nid_proc, "hash", new_stat,
+                                  &lprocfs_exp_hash_fops);
        if (IS_ERR(entry)) {
                CWARN("Error adding the hash file\n");
                rc = PTR_ERR(entry);
@@ -442,8 +436,6 @@ void lprocfs_init_ops_stats(int num_private_stats, struct lprocfs_stats *stats)
        LPROCFS_OBD_OP_INIT(num_private_stats, stats, find_cbdata);
        LPROCFS_OBD_OP_INIT(num_private_stats, stats, init_export);
        LPROCFS_OBD_OP_INIT(num_private_stats, stats, destroy_export);
-       LPROCFS_OBD_OP_INIT(num_private_stats, stats, llog_init);
-       LPROCFS_OBD_OP_INIT(num_private_stats, stats, llog_finish);
        LPROCFS_OBD_OP_INIT(num_private_stats, stats, import_event);
        LPROCFS_OBD_OP_INIT(num_private_stats, stats, notify);
        LPROCFS_OBD_OP_INIT(num_private_stats, stats, health_check);
@@ -515,10 +507,10 @@ int lprocfs_hash_seq_show(struct seq_file *m, void *data)
        if (obd == NULL)
                return 0;
 
-       c += cfs_hash_debug_header_seq(m);
-       c += cfs_hash_debug_str_seq(obd->obd_uuid_hash, m);
-       c += cfs_hash_debug_str_seq(obd->obd_nid_hash, m);
-       c += cfs_hash_debug_str_seq(obd->obd_nid_stats_hash, m);
+       c += cfs_hash_debug_header(m);
+       c += cfs_hash_debug_str(obd->obd_uuid_hash, m);
+       c += cfs_hash_debug_str(obd->obd_nid_hash, m);
+       c += cfs_hash_debug_str(obd->obd_nid_stats_hash, m);
        return c;
 }
 EXPORT_SYMBOL(lprocfs_hash_seq_show);