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;
}
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);
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);
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);