Lines Matching defs:dq
84 struct xfs_dquot *dq,
97 if (dq->q_fileoffset != offset) {
113 if (XFS_FSB_TO_DADDR(mp, irec.br_startblock) != dq->q_blkno)
142 struct xfs_dquot *dq)
161 xfs_dqunlock(dq);
163 xfs_dqlock(dq);
169 offset = dq->q_id / qi->qi_dqperchunk;
170 if (dq->q_id && dq->q_id <= sqi->last_id)
173 sqi->last_id = dq->q_id;
175 error = xchk_quota_item_bmap(sc, dq, offset);
188 if (dq->q_blk.hardlimit > mp->m_sb.sb_dblocks)
190 if (dq->q_blk.softlimit > dq->q_blk.hardlimit)
193 if (dq->q_ino.hardlimit > M_IGEO(mp)->maxicount)
195 if (dq->q_ino.softlimit > dq->q_ino.hardlimit)
198 if (dq->q_rtb.hardlimit > mp->m_sb.sb_rblocks)
200 if (dq->q_rtb.softlimit > dq->q_rtb.hardlimit)
212 if (mp->m_sb.sb_dblocks < dq->q_blk.count)
216 if (mp->m_sb.sb_dblocks < dq->q_blk.count)
220 if (dq->q_ino.count > fs_icount || dq->q_rtb.count > mp->m_sb.sb_rblocks)
228 if (dq->q_id == 0)
231 if (dq->q_blk.hardlimit != 0 &&
232 dq->q_blk.count > dq->q_blk.hardlimit)
235 if (dq->q_ino.hardlimit != 0 &&
236 dq->q_ino.count > dq->q_ino.hardlimit)
239 if (dq->q_rtb.hardlimit != 0 &&
240 dq->q_rtb.count > dq->q_rtb.hardlimit)
243 xchk_quota_item_timer(sc, offset, &dq->q_blk);
244 xchk_quota_item_timer(sc, offset, &dq->q_ino);
245 xchk_quota_item_timer(sc, offset, &dq->q_rtb);
303 struct xfs_dquot *dq;
325 while ((error = xchk_dquot_iter(&cursor, &dq)) == 1) {
326 error = xchk_quota_item(&sqi, dq);
327 xfs_qm_dqput(dq);