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