From 9f8eed627bdfdad4fa6b5454c7aea9c51fd1dfd0 Mon Sep 17 00:00:00 2001 From: green Date: Tue, 6 Dec 2005 23:20:39 +0000 Subject: [PATCH] b=9879 mds_connect_internal does not in fact need obd as its argument, because export has it as ->exp_obd anyway. --- lustre/mds/handler.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lustre/mds/handler.c b/lustre/mds/handler.c index d6ad415f..2c9c303 100644 --- a/lustre/mds/handler.c +++ b/lustre/mds/handler.c @@ -249,9 +249,10 @@ struct dentry *mds_fid2dentry(struct mds_obd *mds, struct ll_fid *fid, RETURN(result); } -static int mds_connect_internal(struct obd_export *exp, struct obd_device *obd, +static int mds_connect_internal(struct obd_export *exp, struct obd_connect_data *data) { + struct obd_device *obd = exp->exp_obd; if (data != NULL) { data->ocd_connect_flags &= MDS_CONNECT_SUPPORTED; data->ocd_ibits_known &= MDS_INODELOCK_FULL; @@ -293,7 +294,7 @@ static int mds_reconnect(struct obd_export *exp, struct obd_device *obd, if (exp == NULL || obd == NULL || cluuid == NULL) RETURN(-EINVAL); - rc = mds_connect_internal(exp, obd, data); + rc = mds_connect_internal(exp, data); RETURN(rc); } @@ -340,7 +341,7 @@ static int mds_connect(struct lustre_handle *conn, struct obd_device *obd, LASSERT(exp); med = &exp->exp_mds_data; - rc = mds_connect_internal(exp, obd, data); + rc = mds_connect_internal(exp, data); if (rc) GOTO(out, rc); -- 1.8.3.1