Lines Matching refs:ddq
39 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()
86 be64_to_cpu(ddq->d_bcount) > be64_to_cpu(ddq->d_blk_softlimit) && in xfs_dquot_verify()
87 !ddq->d_btimer) in xfs_dquot_verify()
90 if (ddq->d_ino_softlimit && in xfs_dquot_verify()
91 be64_to_cpu(ddq->d_icount) > be64_to_cpu(ddq->d_ino_softlimit) && in xfs_dquot_verify()
92 !ddq->d_itimer) in xfs_dquot_verify()
95 if (ddq->d_rtb_softlimit && in xfs_dquot_verify()
96 be64_to_cpu(ddq->d_rtbcount) > be64_to_cpu(ddq->d_rtb_softlimit) && in xfs_dquot_verify()
97 !ddq->d_rtbtimer) in xfs_dquot_verify()
209 struct xfs_disk_dquot *ddq; in xfs_dquot_buf_verify() local
211 ddq = &dqb[i].dd_diskdq; in xfs_dquot_buf_verify()
214 id = be32_to_cpu(ddq->d_id); in xfs_dquot_buf_verify()
302 struct xfs_disk_dquot *ddq, in xfs_dquot_from_disk_ts() argument
307 if (t != 0 && (ddq->d_type & XFS_DQTYPE_BIGTIME)) in xfs_dquot_from_disk_ts()