X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fmdc%2Fmdc_reint.c;h=b34e1e1893e73a5a4ba33ce5a70fae839c6ce79c;hb=c39489126f88bb5b30643ebb11c72fbe9f9d2241;hp=0515372222cc3cfc53e4178af83e44481079c214;hpb=7bb892f4f3de837a940d867b97fe14013ad67dc6;p=fs%2Flustre-release.git diff --git a/lustre/mdc/mdc_reint.c b/lustre/mdc/mdc_reint.c index 0515372..b34e1e1 100644 --- a/lustre/mdc/mdc_reint.c +++ b/lustre/mdc/mdc_reint.c @@ -168,11 +168,11 @@ int mdc_create(struct obd_export *exp, struct mdc_op_data *op_data, int mdc_unlink(struct obd_export *exp, struct mdc_op_data *data, struct ptlrpc_request **request) { - struct obd_device *obddev = class_exp2obd(exp); + struct obd_device *obd = class_exp2obd(exp); struct ptlrpc_request *req = *request; int rc, size[4] = {0, sizeof(struct mds_rec_unlink), data->namelen + 1, - obddev->u.cli.cl_max_mds_cookiesize}; + obd->u.cli.cl_max_mds_cookiesize}; ENTRY; LASSERT(req == NULL); @@ -187,13 +187,14 @@ int mdc_unlink(struct obd_export *exp, struct mdc_op_data *data, *request = req; size[0] = sizeof(struct mds_body); - size[1] = obddev->u.cli.cl_max_mds_easize; - size[2] = obddev->u.cli.cl_max_mds_cookiesize; + size[1] = obd->u.cli.cl_max_mds_easize; + size[2] = obd->u.cli.cl_max_mds_cookiesize; + req->rq_replen = lustre_msg_size(3, size); mdc_unlink_pack(req->rq_reqmsg, 1, data); - rc = mdc_reint(req, obddev->u.cli.cl_rpc_lock, LUSTRE_IMP_FULL); + rc = mdc_reint(req, obd->u.cli.cl_rpc_lock, LUSTRE_IMP_FULL); if (rc == -ERESTARTSYS) rc = 0; RETURN(rc);