Home
last modified time | relevance | path

Searched refs:q_blk (Results 1 – 13 of 13) sorted by relevance

/linux-6.12.1/fs/xfs/
Dxfs_qm_bhv.c26 limit = dqp->q_blk.softlimit ? in xfs_fill_statvfs_from_dquot()
27 dqp->q_blk.softlimit : in xfs_fill_statvfs_from_dquot()
28 dqp->q_blk.hardlimit; in xfs_fill_statvfs_from_dquot()
32 (statp->f_blocks > dqp->q_blk.reserved) ? in xfs_fill_statvfs_from_dquot()
33 (statp->f_blocks - dqp->q_blk.reserved) : 0; in xfs_fill_statvfs_from_dquot()
Dxfs_dquot.c104 if (!dq->q_blk.softlimit) { in xfs_qm_adjust_dqlimits()
105 dq->q_blk.softlimit = defq->blk.soft; in xfs_qm_adjust_dqlimits()
108 if (!dq->q_blk.hardlimit) { in xfs_qm_adjust_dqlimits()
109 dq->q_blk.hardlimit = defq->blk.hard; in xfs_qm_adjust_dqlimits()
191 xfs_qm_adjust_res_timer(dq->q_mount, &dq->q_blk, &defq->blk); in xfs_qm_adjust_dqtimers()
290 dqp->q_prealloc_hi_wmark = dqp->q_blk.hardlimit; in xfs_dquot_set_prealloc_limits()
291 dqp->q_prealloc_lo_wmark = dqp->q_blk.softlimit; in xfs_dquot_set_prealloc_limits()
605 dqp->q_blk.hardlimit = be64_to_cpu(ddqp->d_blk_hardlimit); in xfs_dquot_from_disk()
606 dqp->q_blk.softlimit = be64_to_cpu(ddqp->d_blk_softlimit); in xfs_dquot_from_disk()
612 dqp->q_blk.count = be64_to_cpu(ddqp->d_bcount); in xfs_dquot_from_disk()
[all …]
Dxfs_qm_syscalls.c335 dqp->q_blk.hardlimit; in xfs_qm_scall_setqlim()
338 dqp->q_blk.softlimit; in xfs_qm_scall_setqlim()
339 res = &dqp->q_blk; in xfs_qm_scall_setqlim()
404 dst->d_spc_hardlimit = XFS_FSB_TO_B(mp, dqp->q_blk.hardlimit); in xfs_qm_scall_getquota_fill_qc()
405 dst->d_spc_softlimit = XFS_FSB_TO_B(mp, dqp->q_blk.softlimit); in xfs_qm_scall_getquota_fill_qc()
408 dst->d_space = XFS_FSB_TO_B(mp, dqp->q_blk.reserved); in xfs_qm_scall_getquota_fill_qc()
410 dst->d_spc_timer = dqp->q_blk.timer; in xfs_qm_scall_getquota_fill_qc()
Dxfs_qm.h23 !dqp->q_blk.hardlimit && \
24 !dqp->q_blk.softlimit && \
29 !dqp->q_blk.count && \
Dxfs_trans_dquot.c540 ASSERT(dqp->q_blk.count >= -totalbdelta); in xfs_trans_apply_dquot_deltas()
549 dqp->q_blk.count += totalbdelta; in xfs_trans_apply_dquot_deltas()
581 xfs_apply_quota_reservation_deltas(&dqp->q_blk, in xfs_trans_apply_dquot_deltas()
602 ASSERT(dqp->q_blk.reserved >= dqp->q_blk.count); in xfs_trans_apply_dquot_deltas()
674 dqp->q_blk.reserved -= in xfs_trans_unreserve_and_mod_dquots()
803 blkres = &dqp->q_blk; in xfs_trans_dqresv()
860 if (XFS_IS_CORRUPT(mp, dqp->q_blk.reserved < dqp->q_blk.count) || in xfs_trans_dqresv()
Dxfs_dquot.h73 struct xfs_dquot_res q_blk; /* regular blocks */ member
194 freesp = dqp->q_blk.hardlimit - dqp->q_blk.reserved; in xfs_dquot_lowsp()
Dxfs_qm.c567 defq->blk.hard = dqp->q_blk.hardlimit; in xfs_qm_set_defquota()
568 defq->blk.soft = dqp->q_blk.softlimit; in xfs_qm_set_defquota()
609 if (dqp->q_blk.timer) in xfs_qm_init_timelimits()
610 defq->blk.time = dqp->q_blk.timer; in xfs_qm_init_timelimits()
1120 dqp->q_blk.count += nblks; in xfs_qm_quotacheck_dqadjust()
1121 dqp->q_blk.reserved += nblks; in xfs_qm_quotacheck_dqadjust()
1899 ASSERT(prevdq->q_blk.reserved >= ip->i_delayed_blks); in xfs_qm_vop_chown()
1900 prevdq->q_blk.reserved -= ip->i_delayed_blks; in xfs_qm_vop_chown()
1999 if (dqp->q_blk.reserved < dqp->q_prealloc_lo_wmark) in xfs_inode_near_dquot_enforcement()
2002 if (dqp->q_blk.reserved >= dqp->q_prealloc_hi_wmark) in xfs_inode_near_dquot_enforcement()
[all …]
Dxfs_iomap.c354 if (dq->q_blk.reserved + alloc_blocks < dq->q_prealloc_lo_wmark) in xfs_quota_need_throttle()
373 if (!dq || dq->q_blk.reserved >= dq->q_prealloc_hi_wmark) { in xfs_quota_calc_throttle()
379 freesp = dq->q_prealloc_hi_wmark - dq->q_blk.reserved; in xfs_quota_calc_throttle()
Dxfs_trace.h1055 __entry->res_bcount = dqp->q_blk.reserved;
1059 __entry->bcount = dqp->q_blk.count;
1063 __entry->blk_hardlimit = dqp->q_blk.hardlimit;
1064 __entry->blk_softlimit = dqp->q_blk.softlimit;
/linux-6.12.1/fs/xfs/scrub/
Dquota.c188 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()
212 if (mp->m_sb.sb_dblocks < dq->q_blk.count) in xchk_quota_item()
216 if (mp->m_sb.sb_dblocks < dq->q_blk.count) in xchk_quota_item()
231 if (dq->q_blk.hardlimit != 0 && in xchk_quota_item()
232 dq->q_blk.count > dq->q_blk.hardlimit) in xchk_quota_item()
243 xchk_quota_item_timer(sc, offset, &dq->q_blk); in xchk_quota_item()
Dquota_repair.c200 if (dq->q_blk.softlimit > dq->q_blk.hardlimit) { in xrep_quota_item()
201 dq->q_blk.softlimit = dq->q_blk.hardlimit; in xrep_quota_item()
221 if (!xfs_has_reflink(mp) && dq->q_blk.count > mp->m_sb.sb_dblocks) { in xrep_quota_item()
222 dq->q_blk.reserved -= dq->q_blk.count; in xrep_quota_item()
223 dq->q_blk.reserved += mp->m_sb.sb_dblocks; in xrep_quota_item()
224 dq->q_blk.count = mp->m_sb.sb_dblocks; in xrep_quota_item()
244 xrep_quota_item_timer(sc, &dq->q_blk, &dirty); in xrep_quota_item()
Dquotacheck_repair.c82 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()
Dquotacheck.c573 if (xcdq.bcount != dq->q_blk.count) in xqcheck_compare_dquot()