struct obd_device *obd = exp->exp_obd;
struct lmv_obd *lmv = &obd->u.lmv;
struct ptlrpc_request *req = NULL;
- struct mdt_body *body = NULL;
struct lustre_handle plock;
struct md_op_data *op_data;
struct obd_export *tgt_exp;
+ struct mdt_body *body;
int pmode, rc = 0;
ENTRY;
body = lustre_msg_buf((*reqp)->rq_repmsg,
DLM_REPLY_REC_OFF, sizeof(*body));
LASSERT(body != NULL);
+ LASSERT_REPSWABBED((*reqp), DLM_REPLY_REC_OFF);
if (!(body->valid & OBD_MD_MDS))
RETURN(0);
int extra_lock_flags)
{
struct obd_device *obd = exp->exp_obd;
- struct obd_export *tgt_exp;
struct lu_fid rpid = op_data->op_fid1;
struct lmv_obd *lmv = &obd->u.lmv;
- struct mdt_body *body = NULL;
struct md_op_data *sop_data;
+ struct obd_export *tgt_exp;
struct lmv_stripe_md *mea;
+ struct mdt_body *body;
struct lmv_obj *obj;
int rc, loop = 0;
ENTRY;
body = lustre_msg_buf((*reqp)->rq_repmsg,
DLM_REPLY_REC_OFF, sizeof(*body));
LASSERT(body != NULL);
+ LASSERT_REPSWABBED((*reqp), DLM_REPLY_REC_OFF);
/* could not find object, FID is not present in response. */
if (!(body->valid & OBD_MD_FLID))
struct obd_device *obd = exp->exp_obd;
struct lu_fid rpid = op_data->op_fid1;
struct lmv_obd *lmv = &obd->u.lmv;
- struct mdt_body *body = NULL;
struct md_op_data *sop_data;
struct lmv_stripe_md *mea;
+ struct mdt_body *body;
mdsno_t mds;
int rc = 0;
ENTRY;
body = lustre_msg_buf((*reqp)->rq_repmsg,
DLM_REPLY_REC_OFF, sizeof(*body));
LASSERT(body != NULL);
+ LASSERT_REPSWABBED((*reqp), DLM_REPLY_REC_OFF);
/* could not find object, FID is not present in response. */
if (!(body->valid & OBD_MD_FLID))
{
struct obd_device *obd = exp->exp_obd;
struct lmv_obd *lmv = &obd->u.lmv;
- struct mdt_body *body = NULL;
struct lustre_handle *lockh;
struct md_op_data *op_data;
struct ldlm_lock *lock;
struct mdt_body *body2;
+ struct mdt_body *body;
struct lmv_obj *obj;
int i, rc = 0;
ENTRY;
LASSERT(reqp);
LASSERT(*reqp);
- /* master is locked. we'd like to take locks on slaves and update
+ /*
+ * Master is locked. we'd like to take locks on slaves and update
* attributes to be returned from the slaves it's important that lookup
* is called in two cases:
* - for first time (dcache has no such a resolving yet). -
* ->d_revalidate() returned false.
- * last case possible only if all the objs (master and all slaves aren't
- * valid */
+ * Last case possible only if all the objs (master and all slaves aren't
+ * valid.
+ */
OBD_ALLOC_PTR(op_data);
if (op_data == NULL)
body = lustre_msg_buf((*reqp)->rq_repmsg,
DLM_REPLY_REC_OFF, sizeof(*body));
LASSERT(body != NULL);
- LASSERT((body->valid & OBD_MD_FLID) != 0);
+ LASSERT_REPSWABBED((*reqp), DLM_REPLY_REC_OFF);
+ LASSERT((body->valid & OBD_MD_FLID) != 0);
obj = lmv_obj_grab(obd, &body->fid1);
LASSERT(obj != NULL);
body2 = lustre_msg_buf(req->rq_repmsg,
DLM_REPLY_REC_OFF, sizeof(*body2));
- LASSERT(body2);
+ LASSERT(body2 != NULL);
+ LASSERT_REPSWABBED(req, DLM_REPLY_REC_OFF);
obj->lo_inodes[i].li_size = body2->size;
struct obd_device *obd = exp->exp_obd;
struct lu_fid rpid = op_data->op_fid1;
struct lmv_obd *lmv = &obd->u.lmv;
- struct mdt_body *body = NULL;
struct md_op_data *sop_data;
struct lmv_stripe_md *mea;
+ struct mdt_body *body;
struct lmv_obj *obj;
int rc, loop = 0;
int mea_idx;
cb_blocking, extra_lock_flags);
if (rc == 0 && (mea = lmv_get_mea(*reqp, DLM_REPLY_REC_OFF))) {
- /* wow! this is split dir, we'd like to handle it */
- body = lustre_msg_buf((*reqp)->rq_repmsg,
- DLM_REPLY_REC_OFF, sizeof(*body));
- LASSERT(body != NULL);
- LASSERT((body->valid & OBD_MD_FLID) != 0);
-
+ /* Wow! This is split dir, we'd like to handle it. */
body = lustre_msg_buf((*reqp)->rq_repmsg,
DLM_REPLY_REC_OFF, sizeof(*body));
LASSERT(body != NULL);
+ LASSERT_REPSWABBED((*reqp), DLM_REPLY_REC_OFF);
LASSERT((body->valid & OBD_MD_FLID) != 0);
obj = lmv_obj_grab(obd, &body->fid1);
DLM_REPLY_REC_OFF,
sizeof(*body));
LASSERT(body != NULL);
+ LASSERT_REPSWABBED(mreq, DLM_REPLY_REC_OFF);
goto update;
}
/* take already cached attrs into account */
body = lustre_msg_buf(req->rq_repmsg,
DLM_REPLY_REC_OFF, sizeof(*body));
- LASSERT(body);
+ LASSERT(body != NULL);
+ LASSERT_REPSWABBED(req, DLM_REPLY_REC_OFF);
update:
obj->lo_inodes[i].li_size = body->size;
body = lustre_msg_buf((*reqp)->rq_repmsg,
DLM_REPLY_REC_OFF, sizeof(*body));
- LASSERT(body);
+ LASSERT(body != NULL);
+ LASSERT_REPSWABBED((*reqp), DLM_REPLY_REC_OFF);
body->size = size;
body = lustre_msg_buf((*request)->rq_repmsg, REPLY_REC_OFF,
sizeof(*body));
LASSERT(body != NULL);
+ LASSERT_REPSWABBED((*request), REPLY_REC_OFF);
lmv_obj_lock(obj);
struct ptlrpc_request *req = it->d.lustre.it_data;
struct obd_device *obd = exp->exp_obd;
struct lmv_obd *lmv = &obd->u.lmv;
- struct mdt_body *body = NULL;
struct lustre_handle plock;
struct obd_export *tgt_exp;
struct md_op_data *rdata;
- int rc = 0, pmode;
struct lu_fid fid_copy;
+ struct mdt_body *body;
+ int rc = 0, pmode;
ENTRY;
body = lustre_msg_buf(req->rq_repmsg,
DLM_REPLY_REC_OFF, sizeof(*body));
LASSERT(body != NULL);
+ LASSERT_REPSWABBED(req, DLM_REPLY_REC_OFF);
if (!(body->valid & OBD_MD_MDS))
RETURN(0);
body = lustre_msg_buf((*request)->rq_repmsg,
REQ_REC_OFF, sizeof(*body));
LASSERT(body != NULL);
+ LASSERT_REPSWABBED((*request), REQ_REC_OFF);
if (body->valid & OBD_MD_MDS) {
struct ptlrpc_request *req = NULL;