- ptlrpc_req_finished(req);
- RETURN(rc);
-}
-
-int client_quota_poll_check(struct obd_export *exp, struct if_quotacheck *qchk)
-{
- struct client_obd *cli = &exp->exp_obd->u.cli;
- int rc;
- ENTRY;
-
- rc = cli->cl_qchk_stat;
-
- /* the client is not the previous one */
- if (rc == CL_NOT_QUOTACHECKED)
- rc = -EINTR;
-
- qchk->obd_uuid = cli->cl_target_uuid;
- /* FIXME change strncmp to strcmp and save the strlen op */
- if (strncmp(exp->exp_obd->obd_type->typ_name, LUSTRE_OSC_NAME,
- strlen(LUSTRE_OSC_NAME)))
- memcpy(qchk->obd_type, LUSTRE_OST_NAME,
- strlen(LUSTRE_OST_NAME));
- else if (strncmp(exp->exp_obd->obd_type->typ_name, LUSTRE_MDC_NAME,
- strlen(LUSTRE_MDC_NAME)))
- memcpy(qchk->obd_type, LUSTRE_MDS_NAME,
- strlen(LUSTRE_MDS_NAME));
-
- RETURN(rc);