LPROCFS_OBD_OP_INIT(num_private_stats, stats, pool_del);
LPROCFS_OBD_OP_INIT(num_private_stats, stats, getref);
LPROCFS_OBD_OP_INIT(num_private_stats, stats, putref);
- LPROCFS_OBD_OP_INIT(num_private_stats, stats, sync_fs);
}
int lprocfs_alloc_obd_stats(struct obd_device *obd, unsigned num_private_stats)
struct exp_uuid_cb_data *data = cb_data;
struct obd_export *exp = cfs_hash_object(hs, hnode);
- LASSERT(hs == exp->exp_lock_hash);
- if (!*data->len) {
- *data->len += cfs_hash_debug_header(data->page,
- data->count);
+ if (exp->exp_lock_hash != NULL) {
+ if (!*data->len) {
+ *data->len += cfs_hash_debug_header(data->page,
+ data->count);
+ }
+ *data->len += cfs_hash_debug_str(hs, data->page + *data->len,
+ data->count);
}
- *data->len += cfs_hash_debug_str(hs, data->page + *data->len,
- data->count);
+
return 0;
}