From 11aefb4f2de0359d58a75a16993c6bc324000900 Mon Sep 17 00:00:00 2001 From: bobijam Date: Wed, 6 Aug 2008 02:58:04 +0000 Subject: [PATCH] Branch b1_8_gate b=16317 minor fix. --- lustre/mgs/mgs_fs.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lustre/mgs/mgs_fs.c b/lustre/mgs/mgs_fs.c index 3aa81f8..5dff42f 100644 --- a/lustre/mgs/mgs_fs.c +++ b/lustre/mgs/mgs_fs.c @@ -63,11 +63,12 @@ static int mgs_export_stats_init(struct obd_device *obd, struct obd_export *exp, - lnet_nid_t client_nid) + void *localdata) { + lnet_nid_t *client_nid = localdata; int rc, num_stats, newnid = 0; - rc = lprocfs_exp_setup(exp, &client_nid, &newnid); + rc = lprocfs_exp_setup(exp, client_nid, &newnid); if (rc) { /* Mask error for already created * /proc entries */ @@ -110,7 +111,7 @@ int mgs_client_add(struct obd_device *obd, struct obd_export *exp, void *localdata) { - return mgs_export_stats_init(obd, exp, *(lnet_nid_t *)localdata); + return mgs_export_stats_init(obd, exp, localdata); } /* Remove client export data from the MGS */ -- 1.8.3.1