int rc = 0;
do {
- oqctl->qc_iter_list = (__u64)list;
+ oqctl->qc_iter_list = (uintptr_t)list;
rc = obd_quotactl(exp, oqctl);
if (rc)
break;
GOTO(out, rc = -ENOMEM);
QCTL_COPY(oqctl, qctl);
- oqctl->qc_iter_list = (__u64)&iter_quota_glb_list;
+ oqctl->qc_iter_list = (uintptr_t)&iter_quota_glb_list;
rc = obd_quotactl(sbi->ll_md_exp, oqctl);
if (rc)
GOTO(cleanup, rc);
QCTL_COPY(oqctl, qctl);
oqctl->qc_cmd = LUSTRE_Q_ITEROQUOTA;
- oqctl->qc_iter_list = (__u64)&iter_obd_quota_md_list;
+ oqctl->qc_iter_list = (uintptr_t)&iter_obd_quota_md_list;
rc = obd_quotactl(sbi->ll_md_exp, oqctl);
if (rc)
GOTO(cleanup, rc);
QCTL_COPY(oqctl, qctl);
oqctl->qc_cmd = LUSTRE_Q_ITEROQUOTA;
- oqctl->qc_iter_list = (__u64)&iter_obd_quota_dt_list;
+ oqctl->qc_iter_list = (uintptr_t)&iter_obd_quota_dt_list;
rc = obd_quotactl(sbi->ll_dt_exp, oqctl);
if (rc)
GOTO(cleanup, rc);
if (oqctl->qc_cmd == LUSTRE_Q_ITERQUOTA ||
oqctl->qc_cmd == LUSTRE_Q_ITEROQUOTA) {
- struct list_head *lst = (struct list_head *)oqctl->qc_iter_list;
+ struct list_head *lst =
+ (struct list_head *)(uintptr_t)(oqctl->qc_iter_list);
int err;
if (oqctl->qc_cmd == LUSTRE_Q_ITERQUOTA)
}
if (oqctl->qc_cmd == LUSTRE_Q_ITEROQUOTA)
- lst = (struct list_head *)oqctl->qc_iter_list;
+ lst = (struct list_head *)(uintptr_t)(oqctl->qc_iter_list);
/* for lov tgt */
lov_tgts_getref(obd);
if (req->rq_repmsg &&
(oqc = req_capsule_server_get(&req->rq_pill, &RMF_OBD_QUOTACTL))) {
- struct list_head *lst = (struct list_head *)oqctl->qc_iter_list;
+ struct list_head *lst =
+ (struct list_head *)(uintptr_t)(oqctl->qc_iter_list);
QCTL_COPY(oqctl, oqc);
CERROR("ptlrpc_queue_wait failed, rc: %d\n", rc);
if (rc == 0 && req->rq_repmsg) {
- struct list_head *lst = (struct list_head *)oqctl->qc_iter_list;
+ struct list_head *lst =
+ (struct list_head *)(uintptr_t)(oqctl->qc_iter_list);
oqc = req_capsule_server_get(&req->rq_pill, &RMF_OBD_QUOTACTL);
if (!oqc)