Home
last modified time | relevance | path

Searched refs:ddq (Results 1 – 6 of 6) sorted by relevance

/linux-6.12.1/fs/xfs/libxfs/
Dxfs_dquot_buf.c39 struct xfs_disk_dquot *ddq, in xfs_dquot_verify() argument
59 if (ddq->d_magic != cpu_to_be16(XFS_DQUOT_MAGIC)) in xfs_dquot_verify()
61 if (ddq->d_version != XFS_DQUOT_VERSION) in xfs_dquot_verify()
64 if (ddq->d_type & ~XFS_DQTYPE_ANY) in xfs_dquot_verify()
66 ddq_type = ddq->d_type & XFS_DQTYPE_REC_MASK; in xfs_dquot_verify()
72 if ((ddq->d_type & XFS_DQTYPE_BIGTIME) && in xfs_dquot_verify()
76 if ((ddq->d_type & XFS_DQTYPE_BIGTIME) && !ddq->d_id) in xfs_dquot_verify()
79 if (id != -1 && id != be32_to_cpu(ddq->d_id)) in xfs_dquot_verify()
82 if (!ddq->d_id) in xfs_dquot_verify()
85 if (ddq->d_blk_softlimit && in xfs_dquot_verify()
[all …]
Dxfs_quota_defs.h134 struct xfs_disk_dquot *ddq, xfs_dqid_t id);
142 time64_t xfs_dquot_from_disk_ts(struct xfs_disk_dquot *ddq,
144 __be32 xfs_dquot_to_disk_ts(struct xfs_dquot *ddq, time64_t timer);
/linux-6.12.1/fs/xfs/scrub/
Dquota_repair.c269 const struct xfs_disk_dquot *ddq, in xrep_quota_fix_timer() argument
285 if (ddq->d_type & XFS_DQTYPE_BIGTIME) in xrep_quota_fix_timer()
302 struct xfs_disk_dquot *ddq; in xrep_quota_block() local
324 ddq = &dqblk[0].dd_diskdq; in xrep_quota_block()
330 if ((ddq->d_type & XFS_DQTYPE_REC_MASK) != dqtype || in xrep_quota_block()
331 id == be32_to_cpu(ddq->d_id)) { in xrep_quota_block()
344 ddq = &dqblk->dd_diskdq; in xrep_quota_block()
348 ddq->d_magic = cpu_to_be16(XFS_DQUOT_MAGIC); in xrep_quota_block()
349 ddq->d_version = XFS_DQUOT_VERSION; in xrep_quota_block()
350 ddq->d_type = dqtype; in xrep_quota_block()
[all …]
/linux-6.12.1/fs/xfs/
Dxfs_dquot_item.c49 struct xfs_disk_dquot ddq; in xfs_qm_dquot_logitem_format() local
63 xfs_dquot_to_disk(&ddq, qlip->qli_dquot); in xfs_qm_dquot_logitem_format()
65 xlog_copy_iovec(lv, &vecp, XLOG_REG_TYPE_DQUOT, &ddq, in xfs_qm_dquot_logitem_format()
205 struct xfs_disk_dquot ddq = { }; in xfs_qm_dquot_logitem_precommit() local
208 xfs_dquot_to_disk(&ddq, dqp); in xfs_qm_dquot_logitem_precommit()
209 fa = xfs_dquot_verify(mp, &ddq, dqp->q_id); in xfs_qm_dquot_logitem_precommit()
212 XFS_ERRLEVEL_LOW, mp, &ddq, sizeof(ddq)); in xfs_qm_dquot_logitem_precommit()
Dxfs_dquot_item_recover.c70 struct xfs_disk_dquot *ddq, *recddq; in xlog_recover_dquot_commit_pass2() local
136 ddq = &dqb->dd_diskdq; in xlog_recover_dquot_commit_pass2()
150 memcpy(ddq, recddq, item->ri_buf[1].i_len); in xlog_recover_dquot_commit_pass2()
Dxfs_qm.c873 struct xfs_disk_dquot *ddq; in xfs_qm_reset_dqcounts() local
875 ddq = (struct xfs_disk_dquot *)&dqb[j]; in xfs_qm_reset_dqcounts()
891 ddq->d_type = type; in xfs_qm_reset_dqcounts()
892 ddq->d_bcount = 0; in xfs_qm_reset_dqcounts()
893 ddq->d_icount = 0; in xfs_qm_reset_dqcounts()
894 ddq->d_rtbcount = 0; in xfs_qm_reset_dqcounts()
901 if (ddq->d_id != 0) { in xfs_qm_reset_dqcounts()
902 ddq->d_btimer = 0; in xfs_qm_reset_dqcounts()
903 ddq->d_itimer = 0; in xfs_qm_reset_dqcounts()
904 ddq->d_rtbtimer = 0; in xfs_qm_reset_dqcounts()
[all …]