switch (rc) {
case 0: {
if (body) {
- int diff =ostid_id(&body->oa.o_oi)- oscc->oscc_last_id;
+ int diff = body->oa.o_id - oscc->oscc_last_id;
/* oscc_internal_create() stores the original value of
* grow_count in rq_async_args.space[0].
* next time if needed */
oscc->oscc_flags &= ~OSCC_FLAG_LOW;
}
- oscc->oscc_last_id = ostid_id(&body->oa.o_oi);
+ oscc->oscc_last_id = body->oa.o_id;
}
cfs_spin_unlock(&oscc->oscc_lock);
break;
body = req_capsule_client_get(&request->rq_pill, &RMF_OST_BODY);
cfs_spin_lock(&oscc->oscc_lock);
-
- if (likely(fid_seq_is_mdt(oscc->oscc_oa.o_seq))) {
- body->oa.o_oi.oi_seq = oscc->oscc_oa.o_seq;
- body->oa.o_oi.oi_id = oscc->oscc_last_id +
- oscc->oscc_grow_count;
- } else {
- /*Just warning here currently, since not sure how fid-on-ost
- *will be implemented here */
- CWARN("o_seq: "LPU64" is not indicate any MDTs.\n",
- oscc->oscc_oa.o_seq);
- }
-
+ body->oa.o_id = oscc->oscc_last_id + oscc->oscc_grow_count;
+ body->oa.o_gr = oscc->oscc_oa.o_gr;
+ LASSERT_MDS_GROUP(body->oa.o_gr);
body->oa.o_valid |= OBD_MD_FLID | OBD_MD_FLGROUP;
request->rq_async_args.space[0] = oscc->oscc_grow_count;
cfs_spin_unlock(&oscc->oscc_lock);
struct obdo *oa = oinfo->oi_oa;
ENTRY;
- if ((oa->o_valid & OBD_MD_FLGROUP) && !fid_seq_is_mdt(oa->o_seq)) {
+ if ((oa->o_valid & OBD_MD_FLGROUP) && !filter_group_is_mds(oa->o_gr)) {
rc = osc_real_create(exp, oinfo->oi_oa, ea, oti);
rc = oinfo->oi_cb_up(oinfo, rc);
RETURN(rc);
RETURN(osc_real_create(exp, oa, ea, oti));
}
- if (!fid_seq_is_mdt(oa->o_seq))
+ if (!filter_group_is_mds(oa->o_gr))
RETURN(osc_real_create(exp, oa, ea, oti));
/* this is the special case where create removes orphans */