int mdt_export_stats_init(struct obd_device *obd, struct obd_export *exp,
void *localdata)
{
- lnet_nid_t *client_nid = localdata;
+ lnet_nid_t *client_nid4 = localdata;
struct nid_stat *stats;
int rc;
ENTRY;
- rc = lprocfs_exp_setup(exp, client_nid);
+ if (client_nid4) {
+ struct lnet_nid client_nid;
+
+ lnet_nid4_to_nid(*client_nid4, &client_nid);
+ rc = lprocfs_exp_setup(exp, &client_nid);
+ } else
+ rc = lprocfs_exp_setup(exp, NULL);
if (rc != 0)
/* Mask error for already created /proc entries */
RETURN(rc == -EALREADY ? 0 : rc);