Lines Matching refs:dq
344 struct xfs_dquot *dq = xfs_inode_dquot(ip, type);
346 if (!dq || !xfs_this_quota_on(ip->i_mount, type))
350 if (!dq->q_prealloc_hi_wmark)
354 if (dq->q_blk.reserved + alloc_blocks < dq->q_prealloc_lo_wmark)
368 struct xfs_dquot *dq = xfs_inode_dquot(ip, type);
372 /* no dq, or over hi wmark, squash the prealloc completely */
373 if (!dq || dq->q_blk.reserved >= dq->q_prealloc_hi_wmark) {
379 freesp = dq->q_prealloc_hi_wmark - dq->q_blk.reserved;
380 if (freesp < dq->q_low_space[XFS_QLOWSP_5_PCNT]) {
382 if (freesp < dq->q_low_space[XFS_QLOWSP_3_PCNT])
384 if (freesp < dq->q_low_space[XFS_QLOWSP_1_PCNT])