Lines Matching full:dq
23 /* Convert a scrub type code to a DQ flag, or return 0 if error. */
84 struct xfs_dquot *dq, in xchk_quota_item_bmap() argument
97 if (dq->q_fileoffset != offset) { in xchk_quota_item_bmap()
113 if (XFS_FSB_TO_DADDR(mp, irec.br_startblock) != dq->q_blkno) in xchk_quota_item_bmap()
142 struct xfs_dquot *dq) in xchk_quota_item() argument
161 xfs_dqunlock(dq); in xchk_quota_item()
163 xfs_dqlock(dq); in xchk_quota_item()
169 offset = dq->q_id / qi->qi_dqperchunk; in xchk_quota_item()
170 if (dq->q_id && dq->q_id <= sqi->last_id) in xchk_quota_item()
173 sqi->last_id = dq->q_id; in xchk_quota_item()
175 error = xchk_quota_item_bmap(sc, dq, offset); in xchk_quota_item()
188 if (dq->q_blk.hardlimit > mp->m_sb.sb_dblocks) in xchk_quota_item()
190 if (dq->q_blk.softlimit > dq->q_blk.hardlimit) in xchk_quota_item()
193 if (dq->q_ino.hardlimit > M_IGEO(mp)->maxicount) in xchk_quota_item()
195 if (dq->q_ino.softlimit > dq->q_ino.hardlimit) in xchk_quota_item()
198 if (dq->q_rtb.hardlimit > mp->m_sb.sb_rblocks) in xchk_quota_item()
200 if (dq->q_rtb.softlimit > dq->q_rtb.hardlimit) in xchk_quota_item()
212 if (mp->m_sb.sb_dblocks < dq->q_blk.count) in xchk_quota_item()
215 if (mp->m_sb.sb_rblocks < dq->q_rtb.count) in xchk_quota_item()
219 if (mp->m_sb.sb_dblocks < dq->q_blk.count) in xchk_quota_item()
222 if (mp->m_sb.sb_rblocks < dq->q_rtb.count) in xchk_quota_item()
226 if (dq->q_ino.count > fs_icount) in xchk_quota_item()
234 if (dq->q_id == 0) in xchk_quota_item()
237 if (dq->q_blk.hardlimit != 0 && in xchk_quota_item()
238 dq->q_blk.count > dq->q_blk.hardlimit) in xchk_quota_item()
241 if (dq->q_ino.hardlimit != 0 && in xchk_quota_item()
242 dq->q_ino.count > dq->q_ino.hardlimit) in xchk_quota_item()
245 if (dq->q_rtb.hardlimit != 0 && in xchk_quota_item()
246 dq->q_rtb.count > dq->q_rtb.hardlimit) in xchk_quota_item()
249 xchk_quota_item_timer(sc, offset, &dq->q_blk); in xchk_quota_item()
250 xchk_quota_item_timer(sc, offset, &dq->q_ino); in xchk_quota_item()
251 xchk_quota_item_timer(sc, offset, &dq->q_rtb); in xchk_quota_item()
309 struct xfs_dquot *dq; in xchk_quota() local
331 while ((error = xchk_dquot_iter(&cursor, &dq)) == 1) { in xchk_quota()
332 error = xchk_quota_item(&sqi, dq); in xchk_quota()
333 xfs_qm_dqput(dq); in xchk_quota()