X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fldlm%2Fldlm_lib.c;h=95e566d44a78aa3a3f18d494d1f2452651de3b2e;hp=e05873cef4aae12208c0f43d72a11df6af94a2cc;hb=bb75072cb679bf52e00537c19e42f8e4e95255b6;hpb=f2892fda72897a8a264414c06e54751d127a5709;ds=sidebyside diff --git a/lustre/ldlm/ldlm_lib.c b/lustre/ldlm/ldlm_lib.c index e05873c..95e566d 100644 --- a/lustre/ldlm/ldlm_lib.c +++ b/lustre/ldlm/ldlm_lib.c @@ -3174,8 +3174,7 @@ int target_bulk_io(struct obd_export *exp, struct ptlrpc_bulk_desc *desc, if (req->rq_bulk_read) rc = sptlrpc_svc_wrap_bulk(req, desc); - if ((exp->exp_connect_data.ocd_connect_flags & - OBD_CONNECT_BULK_MBITS) != 0) + if (OCD_HAS_FLAG(&exp->exp_connect_data, BULK_MBITS)) req->rq_mbits = lustre_msg_get_mbits(req->rq_reqmsg); else /* old version, bulk matchbits is rq_xid */ req->rq_mbits = req->rq_xid;