Lines Matching refs:dqp
405 struct xfs_dquot *dqp; in xfs_qm_scall_setqlim() local
429 error = xfs_qm_dqget(mp, NULL, id, type, XFS_QMOPT_DQALLOC, &dqp); in xfs_qm_scall_setqlim()
434 xfs_dqunlock(dqp); in xfs_qm_scall_setqlim()
443 xfs_dqlock(dqp); in xfs_qm_scall_setqlim()
444 xfs_trans_dqjoin(tp, dqp); in xfs_qm_scall_setqlim()
445 ddq = &dqp->q_core; in xfs_qm_scall_setqlim()
459 xfs_dquot_set_prealloc_limits(dqp); in xfs_qm_scall_setqlim()
547 dqp->dq_flags |= XFS_DQ_DIRTY; in xfs_qm_scall_setqlim()
548 xfs_trans_log_dquot(tp, dqp); in xfs_qm_scall_setqlim()
553 xfs_qm_dqrele(dqp); in xfs_qm_scall_setqlim()
642 struct xfs_dquot *dqp; in xfs_qm_scall_getquota() local
650 error = xfs_qm_dqget(mp, NULL, id, type, 0, &dqp); in xfs_qm_scall_getquota()
658 if (XFS_IS_DQUOT_UNINITIALIZED(dqp)) { in xfs_qm_scall_getquota()
665 XFS_FSB_TO_B(mp, be64_to_cpu(dqp->q_core.d_blk_hardlimit)); in xfs_qm_scall_getquota()
667 XFS_FSB_TO_B(mp, be64_to_cpu(dqp->q_core.d_blk_softlimit)); in xfs_qm_scall_getquota()
668 dst->d_ino_hardlimit = be64_to_cpu(dqp->q_core.d_ino_hardlimit); in xfs_qm_scall_getquota()
669 dst->d_ino_softlimit = be64_to_cpu(dqp->q_core.d_ino_softlimit); in xfs_qm_scall_getquota()
670 dst->d_space = XFS_FSB_TO_B(mp, dqp->q_res_bcount); in xfs_qm_scall_getquota()
671 dst->d_ino_count = dqp->q_res_icount; in xfs_qm_scall_getquota()
672 dst->d_spc_timer = be32_to_cpu(dqp->q_core.d_btimer); in xfs_qm_scall_getquota()
673 dst->d_ino_timer = be32_to_cpu(dqp->q_core.d_itimer); in xfs_qm_scall_getquota()
674 dst->d_ino_warns = be16_to_cpu(dqp->q_core.d_iwarns); in xfs_qm_scall_getquota()
675 dst->d_spc_warns = be16_to_cpu(dqp->q_core.d_bwarns); in xfs_qm_scall_getquota()
677 XFS_FSB_TO_B(mp, be64_to_cpu(dqp->q_core.d_rtb_hardlimit)); in xfs_qm_scall_getquota()
679 XFS_FSB_TO_B(mp, be64_to_cpu(dqp->q_core.d_rtb_softlimit)); in xfs_qm_scall_getquota()
680 dst->d_rt_space = XFS_FSB_TO_B(mp, dqp->q_res_rtbcount); in xfs_qm_scall_getquota()
681 dst->d_rt_spc_timer = be32_to_cpu(dqp->q_core.d_rtbtimer); in xfs_qm_scall_getquota()
682 dst->d_rt_spc_warns = be16_to_cpu(dqp->q_core.d_rtbwarns); in xfs_qm_scall_getquota()
690 dqp->q_core.d_flags == XFS_DQ_USER) || in xfs_qm_scall_getquota()
692 dqp->q_core.d_flags == XFS_DQ_GROUP) || in xfs_qm_scall_getquota()
694 dqp->q_core.d_flags == XFS_DQ_PROJ)) { in xfs_qm_scall_getquota()
716 xfs_qm_dqput(dqp); in xfs_qm_scall_getquota()