Home
last modified time | relevance | path

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

/linux-6.1.9/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.1.9/fs/xfs/
Dxfs_dquot_item_recover.c68 struct xfs_disk_dquot *ddq, *recddq; in xlog_recover_dquot_commit_pass2() local
133 ddq = xfs_buf_offset(bp, dq_f->qlf_boffset); in xlog_recover_dquot_commit_pass2()
140 struct xfs_dqblk *dqb = (struct xfs_dqblk *)ddq; in xlog_recover_dquot_commit_pass2()
148 memcpy(ddq, recddq, item->ri_buf[1].i_len); in xlog_recover_dquot_commit_pass2()
150 xfs_update_cksum((char *)ddq, sizeof(struct xfs_dqblk), in xlog_recover_dquot_commit_pass2()
Dxfs_dquot_item.c48 struct xfs_disk_dquot ddq; in xfs_qm_dquot_logitem_format() local
62 xfs_dquot_to_disk(&ddq, qlip->qli_dquot); in xfs_qm_dquot_logitem_format()
64 xlog_copy_iovec(lv, &vecp, XLOG_REG_TYPE_DQUOT, &ddq, in xfs_qm_dquot_logitem_format()
Dxfs_qm.c850 struct xfs_disk_dquot *ddq; in xfs_qm_reset_dqcounts() local
852 ddq = (struct xfs_disk_dquot *)&dqb[j]; in xfs_qm_reset_dqcounts()
868 ddq->d_type = type; in xfs_qm_reset_dqcounts()
869 ddq->d_bcount = 0; in xfs_qm_reset_dqcounts()
870 ddq->d_icount = 0; in xfs_qm_reset_dqcounts()
871 ddq->d_rtbcount = 0; in xfs_qm_reset_dqcounts()
878 if (ddq->d_id != 0) { in xfs_qm_reset_dqcounts()
879 ddq->d_btimer = 0; in xfs_qm_reset_dqcounts()
880 ddq->d_itimer = 0; in xfs_qm_reset_dqcounts()
881 ddq->d_rtbtimer = 0; in xfs_qm_reset_dqcounts()
[all …]