X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Flov%2Flov_obd.c;h=3186999eed994e94c60bd0fd09746fe61c84a40e;hp=152d5d7cb24e06ad529215cdd369ace61ae6b87c;hb=87c86d444e61e38d6454bba5700ba966dc1ac83d;hpb=25c97ec86f471de50556673b52d1e1b7713063af diff --git a/lustre/lov/lov_obd.c b/lustre/lov/lov_obd.c index 152d5d7..3186999 100644 --- a/lustre/lov/lov_obd.c +++ b/lustre/lov/lov_obd.c @@ -763,21 +763,9 @@ lov_create(struct obd_export *exp, struct obdo *src_oa, struct lov_request *req = list_entry(pos, struct lov_request, rq_link); - obd_id *objids = oti->oti_objid; - - if (oti->oti_obj_alloc) { - __u64 next_id; - - /* - * allocating new objid. Here it is delegated to caller, - * that is MDS in CROW case. - */ - next_id = oti->oti_obj_alloc(&objids[req->rq_idx]); - req->rq_oa->o_id = next_id; - } else { - /* and here is default "allocator" */ - req->rq_oa->o_id = ++objids[req->rq_idx]; - } + /* XXX: LOV STACKING: use real "obj_mdp" sub-data */ + rc = obd_create(lov->tgts[req->rq_idx].ltd_exp, + req->rq_oa, NULL, 0, &req->rq_md, oti); lov_update_create_set(set, req, rc); } rc = lov_fini_create_set(set, ea);