Lines Matching refs:dqp

292 	struct xfs_dquot	*dqp;  in xfs_qm_scall_setqlim()  local
319 error = xfs_qm_dqget(mp, id, type, true, &dqp); in xfs_qm_scall_setqlim()
325 defq = xfs_get_defquota(q, xfs_dquot_type(dqp)); in xfs_qm_scall_setqlim()
326 xfs_dqunlock(dqp); in xfs_qm_scall_setqlim()
332 xfs_dqlock(dqp); in xfs_qm_scall_setqlim()
333 xfs_trans_dqjoin(tp, dqp); in xfs_qm_scall_setqlim()
355 dqp->q_blk.hardlimit; in xfs_qm_scall_setqlim()
358 dqp->q_blk.softlimit; in xfs_qm_scall_setqlim()
359 res = &dqp->q_blk; in xfs_qm_scall_setqlim()
363 xfs_dquot_set_prealloc_limits(dqp); in xfs_qm_scall_setqlim()
372 dqp->q_rtb.hardlimit; in xfs_qm_scall_setqlim()
375 dqp->q_rtb.softlimit; in xfs_qm_scall_setqlim()
376 res = &dqp->q_rtb; in xfs_qm_scall_setqlim()
388 dqp->q_ino.hardlimit; in xfs_qm_scall_setqlim()
391 dqp->q_ino.softlimit; in xfs_qm_scall_setqlim()
392 res = &dqp->q_ino; in xfs_qm_scall_setqlim()
409 xfs_qm_adjust_dqtimers(dqp); in xfs_qm_scall_setqlim()
411 dqp->q_flags |= XFS_DQFLAG_DIRTY; in xfs_qm_scall_setqlim()
412 xfs_trans_log_dquot(tp, dqp); in xfs_qm_scall_setqlim()
417 xfs_qm_dqrele(dqp); in xfs_qm_scall_setqlim()
428 const struct xfs_dquot *dqp, in xfs_qm_scall_getquota_fill_qc() argument
432 dst->d_spc_hardlimit = XFS_FSB_TO_B(mp, dqp->q_blk.hardlimit); in xfs_qm_scall_getquota_fill_qc()
433 dst->d_spc_softlimit = XFS_FSB_TO_B(mp, dqp->q_blk.softlimit); in xfs_qm_scall_getquota_fill_qc()
434 dst->d_ino_hardlimit = dqp->q_ino.hardlimit; in xfs_qm_scall_getquota_fill_qc()
435 dst->d_ino_softlimit = dqp->q_ino.softlimit; in xfs_qm_scall_getquota_fill_qc()
436 dst->d_space = XFS_FSB_TO_B(mp, dqp->q_blk.reserved); in xfs_qm_scall_getquota_fill_qc()
437 dst->d_ino_count = dqp->q_ino.reserved; in xfs_qm_scall_getquota_fill_qc()
438 dst->d_spc_timer = dqp->q_blk.timer; in xfs_qm_scall_getquota_fill_qc()
439 dst->d_ino_timer = dqp->q_ino.timer; in xfs_qm_scall_getquota_fill_qc()
440 dst->d_ino_warns = dqp->q_ino.warnings; in xfs_qm_scall_getquota_fill_qc()
441 dst->d_spc_warns = dqp->q_blk.warnings; in xfs_qm_scall_getquota_fill_qc()
442 dst->d_rt_spc_hardlimit = XFS_FSB_TO_B(mp, dqp->q_rtb.hardlimit); in xfs_qm_scall_getquota_fill_qc()
443 dst->d_rt_spc_softlimit = XFS_FSB_TO_B(mp, dqp->q_rtb.softlimit); in xfs_qm_scall_getquota_fill_qc()
444 dst->d_rt_space = XFS_FSB_TO_B(mp, dqp->q_rtb.reserved); in xfs_qm_scall_getquota_fill_qc()
445 dst->d_rt_spc_timer = dqp->q_rtb.timer; in xfs_qm_scall_getquota_fill_qc()
446 dst->d_rt_spc_warns = dqp->q_rtb.warnings; in xfs_qm_scall_getquota_fill_qc()
453 if (!xfs_dquot_is_enforced(dqp)) { in xfs_qm_scall_getquota_fill_qc()
460 if (xfs_dquot_is_enforced(dqp) && dqp->q_id != 0) { in xfs_qm_scall_getquota_fill_qc()
465 if ((dst->d_ino_count > dqp->q_ino.softlimit) && in xfs_qm_scall_getquota_fill_qc()
466 (dqp->q_ino.softlimit > 0)) { in xfs_qm_scall_getquota_fill_qc()
481 struct xfs_dquot *dqp; in xfs_qm_scall_getquota() local
492 error = xfs_qm_dqget(mp, id, type, false, &dqp); in xfs_qm_scall_getquota()
500 if (XFS_IS_DQUOT_UNINITIALIZED(dqp)) { in xfs_qm_scall_getquota()
505 xfs_qm_scall_getquota_fill_qc(mp, type, dqp, dst); in xfs_qm_scall_getquota()
508 xfs_qm_dqput(dqp); in xfs_qm_scall_getquota()
523 struct xfs_dquot *dqp; in xfs_qm_scall_getquota_next() local
530 error = xfs_qm_dqget_next(mp, *id, type, &dqp); in xfs_qm_scall_getquota_next()
535 *id = dqp->q_id; in xfs_qm_scall_getquota_next()
537 xfs_qm_scall_getquota_fill_qc(mp, type, dqp, dst); in xfs_qm_scall_getquota_next()
539 xfs_qm_dqput(dqp); in xfs_qm_scall_getquota_next()