Lines Matching full:dq
47 struct xfs_dquot *dq) in xqcheck_commit_dquot() argument
56 xfs_dqunlock(dq); in xqcheck_commit_dquot()
58 xfs_dqlock(dq); in xqcheck_commit_dquot()
62 xfs_trans_dqjoin(xqc->sc->tp, dq); in xqcheck_commit_dquot()
70 error = xfarray_load_sparse(counts, dq->q_id, &xcdq); in xqcheck_commit_dquot()
75 delta = (int64_t)xcdq.icount - dq->q_ino.count; in xqcheck_commit_dquot()
77 dq->q_ino.reserved += delta; in xqcheck_commit_dquot()
78 dq->q_ino.count += delta; in xqcheck_commit_dquot()
82 delta = (int64_t)xcdq.bcount - dq->q_blk.count; in xqcheck_commit_dquot()
84 dq->q_blk.reserved += delta; in xqcheck_commit_dquot()
85 dq->q_blk.count += delta; in xqcheck_commit_dquot()
89 delta = (int64_t)xcdq.rtbcount - dq->q_rtb.count; in xqcheck_commit_dquot()
91 dq->q_rtb.reserved += delta; in xqcheck_commit_dquot()
92 dq->q_rtb.count += delta; in xqcheck_commit_dquot()
97 error = xfarray_store(counts, dq->q_id, &xcdq); in xqcheck_commit_dquot()
111 trace_xrep_quotacheck_dquot(xqc->sc->mp, dq->q_type, dq->q_id); in xqcheck_commit_dquot()
114 dq->q_flags |= XFS_DQFLAG_DIRTY; in xqcheck_commit_dquot()
115 if (dq->q_id) in xqcheck_commit_dquot()
116 xfs_qm_adjust_dqtimers(dq); in xqcheck_commit_dquot()
117 xfs_trans_log_dquot(xqc->sc->tp, dq); in xqcheck_commit_dquot()
125 xfs_dqlock(dq); in xqcheck_commit_dquot()
134 xfs_dqlock(dq); in xqcheck_commit_dquot()
149 struct xfs_dquot *dq; in xqcheck_commit_dqtype() local
157 while ((error = xchk_dquot_iter(&cursor, &dq)) == 1) { in xqcheck_commit_dqtype()
158 error = xqcheck_commit_dquot(xqc, dqtype, dq); in xqcheck_commit_dqtype()
159 xfs_qm_dqput(dq); in xqcheck_commit_dqtype()
185 error = xfs_qm_dqget(mp, id, dqtype, true, &dq); in xqcheck_commit_dqtype()
189 error = xqcheck_commit_dquot(xqc, dqtype, dq); in xqcheck_commit_dqtype()
190 xfs_qm_dqput(dq); in xqcheck_commit_dqtype()