struct lu_range *range,
__u32 opc, const char *opcname)
{
+ int rc, size[2] = { sizeof(struct ptlrpc_body),
+ sizeof(__u32) };
struct obd_export *exp = seq->lcs_exp;
- int repsize[2] = { sizeof(struct ptlrpc_body),
- sizeof(struct lu_range) };
- int rc, reqsize[2] = { sizeof(struct ptlrpc_body),
- sizeof(__u32) };
struct ptlrpc_request *req;
struct req_capsule pill;
struct lu_range *ran;
req = ptlrpc_prep_req(class_exp2cliimp(exp),
LUSTRE_MDS_VERSION,
- SEQ_QUERY, 2, reqsize,
+ SEQ_QUERY, 2, size,
NULL);
if (req == NULL)
RETURN(-ENOMEM);
op = req_capsule_client_get(&pill, &RMF_SEQ_OPC);
*op = opc;
- ptlrpc_req_set_repsize(req, 2, repsize);
+ size[1] = sizeof(struct lu_range);
+ ptlrpc_req_set_repsize(req, 2, size);
if (seq->lcs_type == LUSTRE_SEQ_METADATA) {
req->rq_request_portal = (opc == SEQ_ALLOC_SUPER) ?
static int fld_client_rpc(struct obd_export *exp,
struct md_fld *mf, __u32 fld_op)
{
- int reqsize[3] = { sizeof(struct ptlrpc_body),
- sizeof(__u32),
- sizeof(struct md_fld) };
- int repsize[2] = { sizeof(struct ptlrpc_body),
- sizeof(struct md_fld) };
+ int size[3] = { sizeof(struct ptlrpc_body),
+ sizeof(__u32),
+ sizeof(struct md_fld) };
struct ptlrpc_request *req;
struct req_capsule pill;
struct md_fld *pmf;
req = ptlrpc_prep_req(class_exp2cliimp(exp),
LUSTRE_MDS_VERSION, FLD_QUERY,
- 3, reqsize, NULL);
+ 3, size, NULL);
if (req == NULL)
RETURN(-ENOMEM);
pmf = req_capsule_client_get(&pill, &RMF_FLD_MDFLD);
*pmf = *mf;
- ptlrpc_req_set_repsize(req, 2, repsize);
+ size[1] = sizeof(struct md_fld);
+ ptlrpc_req_set_repsize(req, 2, size);
req->rq_request_portal = FLD_REQUEST_PORTAL;
rc = ptlrpc_queue_wait(req);