Whamcloud - gitweb
LU-12635 build: Support for gcc -Wimplicit-fallthrough
[fs/lustre-release.git] / lustre / mdc / mdc_request.c
index 04cef2a..646db73 100644 (file)
@@ -1602,8 +1602,7 @@ static int mdc_statfs_async(struct obd_export *exp,
        ptlrpc_request_set_replen(req);
        req->rq_interpret_reply = mdc_statfs_interpret;
 
-       CLASSERT(sizeof(*aa) <= sizeof(req->rq_async_args));
-       aa = ptlrpc_req_async_args(req);
+       aa = ptlrpc_req_async_args(aa, req);
        *aa = *oinfo;
 
        ptlrpcd_add_req(req);
@@ -2579,7 +2578,7 @@ int mdc_rmfid_interpret(const struct lu_env *env, struct ptlrpc_request *req,
        ENTRY;
 
        if (!rc) {
-               aa = ptlrpc_req_async_args(req);
+               aa = ptlrpc_req_async_args(aa, req);
 
                size = req_capsule_get_size(&req->rq_pill, &RMF_RCS,
                                            RCL_SERVER);
@@ -2630,7 +2629,7 @@ static int mdc_rmfid(struct obd_export *exp, struct fid_array *fa,
        ptlrpc_request_set_replen(req);
 
        LASSERT(rcs);
-       aa = ptlrpc_req_async_args(req);
+       aa = ptlrpc_req_async_args(aa, req);
        aa->mra_rcs = rcs;
        aa->mra_nr = fa->fa_nr;
        req->rq_interpret_reply = mdc_rmfid_interpret;