Lines Matching refs:dq
70 struct xfs_dquot *dq)
72 struct xfs_mount *mp = dq->q_mount;
77 ASSERT(dq->q_id);
78 defq = xfs_get_defquota(q, xfs_dquot_type(dq));
80 if (!dq->q_blk.softlimit) {
81 dq->q_blk.softlimit = defq->blk.soft;
84 if (!dq->q_blk.hardlimit) {
85 dq->q_blk.hardlimit = defq->blk.hard;
88 if (!dq->q_ino.softlimit)
89 dq->q_ino.softlimit = defq->ino.soft;
90 if (!dq->q_ino.hardlimit)
91 dq->q_ino.hardlimit = defq->ino.hard;
92 if (!dq->q_rtb.softlimit)
93 dq->q_rtb.softlimit = defq->rtb.soft;
94 if (!dq->q_rtb.hardlimit)
95 dq->q_rtb.hardlimit = defq->rtb.hard;
98 xfs_dquot_set_prealloc_limits(dq);
161 struct xfs_dquot *dq)
163 struct xfs_mount *mp = dq->q_mount;
167 ASSERT(dq->q_id);
168 defq = xfs_get_defquota(qi, xfs_dquot_type(dq));
170 xfs_qm_adjust_res_timer(dq->q_mount, &dq->q_blk, &defq->blk);
171 xfs_qm_adjust_res_timer(dq->q_mount, &dq->q_ino, &defq->ino);
172 xfs_qm_adjust_res_timer(dq->q_mount, &dq->q_rtb, &defq->rtb);
1163 * Release the dq's flush lock since we're done with it.
1404 struct xfs_dquot *dq;
1409 error = xfs_qm_dqget_next(mp, id, type, &dq);
1415 error = iter_fn(dq, type, priv);
1416 id = dq->q_id;
1417 xfs_qm_dqput(dq);