Lines Matching defs:ump
279 struct ulfsmount *ump = VFSTOULFS(mp);
280 struct lfs *fs = ump->um_lfs;
290 if (ump->um_quotas[i] != NULLVP) {
291 lfsquota1_handle_cmd_quotaoff(l, ump, i);
305 lfsquota1_handle_cmd_quotaon(struct lwp *l, struct ulfsmount *ump, int type,
308 struct mount *mp = ump->um_mountp;
309 struct lfs *fs = ump->um_lfs;
322 vpp = &ump->um_quotas[type];
341 lfsquota1_handle_cmd_quotaoff(l, ump, type);
343 while ((ump->umq1_qflags[type] & (QTF_CLOSING | QTF_OPENING)) != 0)
345 ump->umq1_qflags[type] |= QTF_OPENING;
355 ump->um_cred[type] = l->l_cred;
356 ump->umq1_btime[type] = MAX_DQ_TIME;
357 ump->umq1_itime[type] = MAX_IQ_TIME;
358 if (lfs_dqget(NULLVP, 0, ump, type, &dq) == 0) {
360 ump->umq1_btime[type] = dq->dq_btime;
362 ump->umq1_itime[type] = dq->dq_itime;
394 ump->umq1_qflags[type] &= ~QTF_OPENING;
400 lfsquota1_handle_cmd_quotaoff(l, ump, type);
408 lfsquota1_handle_cmd_quotaoff(struct lwp *l, struct ulfsmount *ump, int type)
410 struct mount *mp = ump->um_mountp;
411 struct lfs *fs = ump->um_lfs;
421 while ((ump->umq1_qflags[type] & (QTF_CLOSING | QTF_OPENING)) != 0)
423 if ((qvp = ump->um_quotas[type]) == NULLVP) {
427 ump->umq1_qflags[type] |= QTF_CLOSING;
458 ump->um_quotas[type] = NULLVP;
459 cred = ump->um_cred[type];
460 ump->um_cred[type] = NOCRED;
462 if (ump->um_quotas[i] != NULLVP)
464 ump->umq1_qflags[type] &= ~QTF_CLOSING;
474 lfsquota1_handle_cmd_get(struct ulfsmount *ump, const struct quotakey *qk,
486 if (ump->um_quotas[idtype] == NULLVP)
490 if ((error = lfs_dqget(NULLVP, 0, ump, idtype, &dq)) != 0)
494 if ((error = lfs_dqget(NULLVP, id, ump, idtype, &dq)) != 0)
534 lfsquota1_handle_cmd_put(struct ulfsmount *ump, const struct quotakey *key,
557 if (ump->um_quotas[key->qk_idtype] == NULLVP)
564 if ((error = lfs_dqget(NULLVP, id, ump, key->qk_idtype, &dq)) != 0)
569 ump->umq1_btime[key->qk_idtype] = dq->dq_btime =
572 ump->umq1_itime[key->qk_idtype] = dq->dq_itime =
581 if ((error = lfs_dqget(NULLVP, key->qk_id, ump, key->qk_idtype, &dq)) != 0)
608 ump->umq1_btime[key->qk_idtype] = dqb.dqb_btime =
612 ump->umq1_itime[key->qk_idtype] = dqb.dqb_itime =
619 dqb.dqb_btime = time_second + ump->umq1_btime[key->qk_idtype];
623 dqb.dqb_itime = time_second + ump->umq1_itime[key->qk_idtype];
650 struct ulfsmount *ump = VFSTOULFS(mp);
653 if ((error = lfs_dqget(NULLVP, id, ump, type, &ndq)) != 0)
671 dqb->dqb_btime = time_second + ump->umq1_btime[type];
675 dqb->dqb_itime = time_second + ump->umq1_itime[type];
699 struct ulfsmount *ump = VFSTOULFS(mp);
707 if ((error = lfs_dqget(NULLVP, id, ump, type, &ndq)) != 0)
717 dq->dq_btime = time_second + ump->umq1_btime[type];
720 dq->dq_itime = time_second + ump->umq1_itime[type];
740 struct ulfsmount *ump = VFSTOULFS(mp);
751 if (ump->um_quotas[i] != NULLVP)
791 lfs_dq1get(struct vnode *dqvp, u_long id, struct ulfsmount *ump, int type,
808 error = VOP_READ(dqvp, &auio, 0, ump->um_cred[type]);
827 dq->dq_btime = time_second + ump->umq1_btime[type];
829 dq->dq_itime = time_second + ump->umq1_itime[type];