Searched refs:dq (Results 1 – 4 of 4) sorted by relevance
74 struct xfs_dquot *dq, in xchk_quota_item() argument93 offset = dq->q_id / qi->qi_dqperchunk; in xchk_quota_item()94 if (dq->q_id && dq->q_id <= sqi->last_id) in xchk_quota_item()97 sqi->last_id = dq->q_id; in xchk_quota_item()107 if (dq->q_blk.hardlimit > mp->m_sb.sb_dblocks) in xchk_quota_item()109 if (dq->q_blk.softlimit > dq->q_blk.hardlimit) in xchk_quota_item()112 if (dq->q_ino.hardlimit > M_IGEO(mp)->maxicount) in xchk_quota_item()114 if (dq->q_ino.softlimit > dq->q_ino.hardlimit) in xchk_quota_item()117 if (dq->q_rtb.hardlimit > mp->m_sb.sb_rblocks) in xchk_quota_item()119 if (dq->q_rtb.softlimit > dq->q_rtb.hardlimit) in xchk_quota_item()[all …]
70 struct xfs_dquot *dq) in xfs_qm_adjust_dqlimits() argument72 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()[all …]
302 struct xfs_dquot *dq = xfs_inode_dquot(ip, type); in xfs_quota_need_throttle() local304 if (!dq || !xfs_this_quota_on(ip->i_mount, type)) in xfs_quota_need_throttle()308 if (!dq->q_prealloc_hi_wmark) in xfs_quota_need_throttle()312 if (dq->q_blk.reserved + alloc_blocks < dq->q_prealloc_lo_wmark) in xfs_quota_need_throttle()326 struct xfs_dquot *dq = xfs_inode_dquot(ip, type); in xfs_quota_calc_throttle() local331 if (!dq || dq->q_blk.reserved >= dq->q_prealloc_hi_wmark) { in xfs_quota_calc_throttle()337 freesp = dq->q_prealloc_hi_wmark - dq->q_blk.reserved; in xfs_quota_calc_throttle()338 if (freesp < dq->q_low_space[XFS_QLOWSP_5_PCNT]) { in xfs_quota_calc_throttle()340 if (freesp < dq->q_low_space[XFS_QLOWSP_3_PCNT]) in xfs_quota_calc_throttle()342 if (freesp < dq->q_low_space[XFS_QLOWSP_1_PCNT]) in xfs_quota_calc_throttle()
237 typedef int (*xfs_qm_dqiterate_fn)(struct xfs_dquot *dq,