Lines Matching refs:dq

70 	struct xfs_dquot	*dq)  in xfs_qm_adjust_dqlimits()  argument
72 struct xfs_mount *mp = dq->q_mount; in xfs_qm_adjust_dqlimits()
77 ASSERT(dq->q_id); in xfs_qm_adjust_dqlimits()
78 defq = xfs_get_defquota(q, xfs_dquot_type(dq)); in xfs_qm_adjust_dqlimits()
80 if (!dq->q_blk.softlimit) { in xfs_qm_adjust_dqlimits()
81 dq->q_blk.softlimit = defq->blk.soft; in xfs_qm_adjust_dqlimits()
84 if (!dq->q_blk.hardlimit) { in xfs_qm_adjust_dqlimits()
85 dq->q_blk.hardlimit = defq->blk.hard; in xfs_qm_adjust_dqlimits()
88 if (!dq->q_ino.softlimit) in xfs_qm_adjust_dqlimits()
89 dq->q_ino.softlimit = defq->ino.soft; in xfs_qm_adjust_dqlimits()
90 if (!dq->q_ino.hardlimit) in xfs_qm_adjust_dqlimits()
91 dq->q_ino.hardlimit = defq->ino.hard; in xfs_qm_adjust_dqlimits()
92 if (!dq->q_rtb.softlimit) in xfs_qm_adjust_dqlimits()
93 dq->q_rtb.softlimit = defq->rtb.soft; in xfs_qm_adjust_dqlimits()
94 if (!dq->q_rtb.hardlimit) in xfs_qm_adjust_dqlimits()
95 dq->q_rtb.hardlimit = defq->rtb.hard; in xfs_qm_adjust_dqlimits()
98 xfs_dquot_set_prealloc_limits(dq); in xfs_qm_adjust_dqlimits()
158 struct xfs_dquot *dq) in xfs_qm_adjust_dqtimers() argument
160 struct xfs_mount *mp = dq->q_mount; in xfs_qm_adjust_dqtimers()
164 ASSERT(dq->q_id); in xfs_qm_adjust_dqtimers()
165 defq = xfs_get_defquota(qi, xfs_dquot_type(dq)); in xfs_qm_adjust_dqtimers()
167 xfs_qm_adjust_res_timer(dq->q_mount, &dq->q_blk, &defq->blk); in xfs_qm_adjust_dqtimers()
168 xfs_qm_adjust_res_timer(dq->q_mount, &dq->q_ino, &defq->ino); in xfs_qm_adjust_dqtimers()
169 xfs_qm_adjust_res_timer(dq->q_mount, &dq->q_rtb, &defq->rtb); in xfs_qm_adjust_dqtimers()
1378 struct xfs_dquot *dq; in xfs_qm_dqiterate() local
1383 error = xfs_qm_dqget_next(mp, id, type, &dq); in xfs_qm_dqiterate()
1389 error = iter_fn(dq, type, priv); in xfs_qm_dqiterate()
1390 id = dq->q_id + 1; in xfs_qm_dqiterate()
1391 xfs_qm_dqput(dq); in xfs_qm_dqiterate()