lap->lap_caller_ops->ap_completion(lap->lap_caller_data, cmd, oa, rc);
}
-static void lov_ap_get_ucred(void *data, struct lvfs_ucred *ouc)
-{
- struct lov_async_page *lap = LAP_FROM_COOKIE(data);
-
- lap->lap_caller_ops->ap_get_ucred(lap->lap_caller_data, ouc);
-}
-
static struct obd_async_page_ops lov_async_page_ops = {
.ap_make_ready = lov_ap_make_ready,
.ap_refresh_count = lov_ap_refresh_count,
.ap_fill_obdo = lov_ap_fill_obdo,
.ap_completion = lov_ap_completion,
- .ap_get_ucred = lov_ap_get_ucred,
};
int lov_prep_async_page(struct obd_export *exp, struct lov_stripe_md *lsm,
LASSERT(ops != NULL);
ops->ap_fill_obdo(caller_data, cmd, oa);
- /* To enforce quota on oss, we need pass the client's user credit
- * information to ost. We chose to store the fsuid and fsgid in
- * oa->o_uid and oa->o_gid since the two fields haven't been used
- * at present. And we chose one page's user credit information as
- * the whole rpc's credit information. FIXME */
- if (cmd == OBD_BRW_WRITE) {
- struct lvfs_ucred ouc;
- ops->ap_get_ucred(caller_data, &ouc);
- oa->o_uid = ouc.luc_fsuid;
- oa->o_gid = ouc.luc_fsgid;
- }
-
sort_brw_pages(pga, page_count);
rc = osc_brw_prep_request(cmd, cli->cl_import, oa, NULL, page_count,
pga, &requested_nob, &nio_count, &req);