Whamcloud - gitweb
LU-5814 llite: remove ll_objects_destroy()
[fs/lustre-release.git] / lustre / lov / lov_request.c
index 1dc62e4..a4dd6a0 100644 (file)
@@ -326,82 +326,6 @@ out_set:
         RETURN(rc);
 }
 
-int lov_fini_destroy_set(struct lov_request_set *set)
-{
-       ENTRY;
-
-       if (set == NULL)
-               RETURN(0);
-       LASSERT(set->set_exp);
-       if (atomic_read(&set->set_completes)) {
-               /* FIXME update qos data here */
-       }
-
-       lov_put_reqset(set);
-
-       RETURN(0);
-}
-
-int lov_prep_destroy_set(struct obd_export *exp, struct obd_info *oinfo,
-                         struct obdo *src_oa, struct lov_stripe_md *lsm,
-                         struct obd_trans_info *oti,
-                         struct lov_request_set **reqset)
-{
-        struct lov_request_set *set;
-        struct lov_obd *lov = &exp->exp_obd->u.lov;
-        int rc = 0, i;
-        ENTRY;
-
-        OBD_ALLOC(set, sizeof(*set));
-        if (set == NULL)
-                RETURN(-ENOMEM);
-        lov_init_set(set);
-
-        set->set_exp = exp;
-        set->set_oi = oinfo;
-        set->set_oi->oi_md = lsm;
-        set->set_oi->oi_oa = src_oa;
-        if (oti != NULL && src_oa->o_valid & OBD_MD_FLCOOKIE)
-                set->set_cookies = oti->oti_logcookies;
-
-        for (i = 0; i < lsm->lsm_stripe_count; i++) {
-               struct lov_oinfo *loi;
-               struct lov_request *req;
-
-               loi = lsm->lsm_oinfo[i];
-               if (lov_oinfo_is_dummy(loi))
-                       continue;
-
-               if (!lov_check_and_wait_active(lov, loi->loi_ost_idx)) {
-                       CDEBUG(D_HA, "lov idx %d inactive\n", loi->loi_ost_idx);
-                       continue;
-               }
-
-                OBD_ALLOC(req, sizeof(*req));
-                if (req == NULL)
-                        GOTO(out_set, rc = -ENOMEM);
-
-                req->rq_stripe = i;
-                req->rq_idx = loi->loi_ost_idx;
-
-                OBDO_ALLOC(req->rq_oi.oi_oa);
-                if (req->rq_oi.oi_oa == NULL) {
-                        OBD_FREE(req, sizeof(*req));
-                        GOTO(out_set, rc = -ENOMEM);
-                }
-                memcpy(req->rq_oi.oi_oa, src_oa, sizeof(*req->rq_oi.oi_oa));
-               req->rq_oi.oi_oa->o_oi = loi->loi_oi;
-                lov_set_add_req(req, set);
-        }
-        if (!set->set_count)
-                GOTO(out_set, rc = -EIO);
-        *reqset = set;
-        RETURN(rc);
-out_set:
-        lov_fini_destroy_set(set);
-        RETURN(rc);
-}
-
 int lov_fini_setattr_set(struct lov_request_set *set)
 {
        int rc = 0;