Lines Matching refs:dqp

508 	struct xfs_dquot	*dqp;  in xfs_qm_scall_setqlim()  local
535 error = xfs_qm_dqget(mp, id, type, true, &dqp); in xfs_qm_scall_setqlim()
541 defq = xfs_get_defquota(q, xfs_dquot_type(dqp)); in xfs_qm_scall_setqlim()
542 xfs_dqunlock(dqp); in xfs_qm_scall_setqlim()
548 xfs_dqlock(dqp); in xfs_qm_scall_setqlim()
549 xfs_trans_dqjoin(tp, dqp); in xfs_qm_scall_setqlim()
571 dqp->q_blk.hardlimit; in xfs_qm_scall_setqlim()
574 dqp->q_blk.softlimit; in xfs_qm_scall_setqlim()
575 res = &dqp->q_blk; in xfs_qm_scall_setqlim()
579 xfs_dquot_set_prealloc_limits(dqp); in xfs_qm_scall_setqlim()
588 dqp->q_rtb.hardlimit; in xfs_qm_scall_setqlim()
591 dqp->q_rtb.softlimit; in xfs_qm_scall_setqlim()
592 res = &dqp->q_rtb; in xfs_qm_scall_setqlim()
604 dqp->q_ino.hardlimit; in xfs_qm_scall_setqlim()
607 dqp->q_ino.softlimit; in xfs_qm_scall_setqlim()
608 res = &dqp->q_ino; in xfs_qm_scall_setqlim()
625 xfs_qm_adjust_dqtimers(dqp); in xfs_qm_scall_setqlim()
627 dqp->q_flags |= XFS_DQFLAG_DIRTY; in xfs_qm_scall_setqlim()
628 xfs_trans_log_dquot(tp, dqp); in xfs_qm_scall_setqlim()
633 xfs_qm_dqrele(dqp); in xfs_qm_scall_setqlim()
644 const struct xfs_dquot *dqp, in xfs_qm_scall_getquota_fill_qc() argument
648 dst->d_spc_hardlimit = XFS_FSB_TO_B(mp, dqp->q_blk.hardlimit); in xfs_qm_scall_getquota_fill_qc()
649 dst->d_spc_softlimit = XFS_FSB_TO_B(mp, dqp->q_blk.softlimit); in xfs_qm_scall_getquota_fill_qc()
650 dst->d_ino_hardlimit = dqp->q_ino.hardlimit; in xfs_qm_scall_getquota_fill_qc()
651 dst->d_ino_softlimit = dqp->q_ino.softlimit; in xfs_qm_scall_getquota_fill_qc()
652 dst->d_space = XFS_FSB_TO_B(mp, dqp->q_blk.reserved); in xfs_qm_scall_getquota_fill_qc()
653 dst->d_ino_count = dqp->q_ino.reserved; in xfs_qm_scall_getquota_fill_qc()
654 dst->d_spc_timer = dqp->q_blk.timer; in xfs_qm_scall_getquota_fill_qc()
655 dst->d_ino_timer = dqp->q_ino.timer; in xfs_qm_scall_getquota_fill_qc()
656 dst->d_ino_warns = dqp->q_ino.warnings; in xfs_qm_scall_getquota_fill_qc()
657 dst->d_spc_warns = dqp->q_blk.warnings; in xfs_qm_scall_getquota_fill_qc()
658 dst->d_rt_spc_hardlimit = XFS_FSB_TO_B(mp, dqp->q_rtb.hardlimit); in xfs_qm_scall_getquota_fill_qc()
659 dst->d_rt_spc_softlimit = XFS_FSB_TO_B(mp, dqp->q_rtb.softlimit); in xfs_qm_scall_getquota_fill_qc()
660 dst->d_rt_space = XFS_FSB_TO_B(mp, dqp->q_rtb.reserved); in xfs_qm_scall_getquota_fill_qc()
661 dst->d_rt_spc_timer = dqp->q_rtb.timer; in xfs_qm_scall_getquota_fill_qc()
662 dst->d_rt_spc_warns = dqp->q_rtb.warnings; in xfs_qm_scall_getquota_fill_qc()
669 if (!xfs_dquot_is_enforced(dqp)) { in xfs_qm_scall_getquota_fill_qc()
676 if (xfs_dquot_is_enforced(dqp) && dqp->q_id != 0) { in xfs_qm_scall_getquota_fill_qc()
681 if ((dst->d_ino_count > dqp->q_ino.softlimit) && in xfs_qm_scall_getquota_fill_qc()
682 (dqp->q_ino.softlimit > 0)) { in xfs_qm_scall_getquota_fill_qc()
697 struct xfs_dquot *dqp; in xfs_qm_scall_getquota() local
704 error = xfs_qm_dqget(mp, id, type, false, &dqp); in xfs_qm_scall_getquota()
712 if (XFS_IS_DQUOT_UNINITIALIZED(dqp)) { in xfs_qm_scall_getquota()
717 xfs_qm_scall_getquota_fill_qc(mp, type, dqp, dst); in xfs_qm_scall_getquota()
720 xfs_qm_dqput(dqp); in xfs_qm_scall_getquota()
735 struct xfs_dquot *dqp; in xfs_qm_scall_getquota_next() local
738 error = xfs_qm_dqget_next(mp, *id, type, &dqp); in xfs_qm_scall_getquota_next()
743 *id = dqp->q_id; in xfs_qm_scall_getquota_next()
745 xfs_qm_scall_getquota_fill_qc(mp, type, dqp, dst); in xfs_qm_scall_getquota_next()
747 xfs_qm_dqput(dqp); in xfs_qm_scall_getquota_next()