Lines Matching refs:ddq

53 	xfs_disk_dquot_t *ddq,  in xfs_dqcheck()  argument
59 xfs_dqblk_t *d = (xfs_dqblk_t *)ddq; in xfs_dqcheck()
77 if (ddq->d_magic != cpu_to_be16(XFS_DQUOT_MAGIC)) { in xfs_dqcheck()
81 str, id, be16_to_cpu(ddq->d_magic), XFS_DQUOT_MAGIC); in xfs_dqcheck()
84 if (ddq->d_version != XFS_DQUOT_VERSION) { in xfs_dqcheck()
88 str, id, ddq->d_version, XFS_DQUOT_VERSION); in xfs_dqcheck()
92 if (ddq->d_flags != XFS_DQ_USER && in xfs_dqcheck()
93 ddq->d_flags != XFS_DQ_PROJ && in xfs_dqcheck()
94 ddq->d_flags != XFS_DQ_GROUP) { in xfs_dqcheck()
98 str, id, ddq->d_flags); in xfs_dqcheck()
102 if (id != -1 && id != be32_to_cpu(ddq->d_id)) { in xfs_dqcheck()
107 str, ddq, id, be32_to_cpu(ddq->d_id)); in xfs_dqcheck()
111 if (!errs && ddq->d_id) { in xfs_dqcheck()
112 if (ddq->d_blk_softlimit && in xfs_dqcheck()
113 be64_to_cpu(ddq->d_bcount) > in xfs_dqcheck()
114 be64_to_cpu(ddq->d_blk_softlimit)) { in xfs_dqcheck()
115 if (!ddq->d_btimer) { in xfs_dqcheck()
119 str, (int)be32_to_cpu(ddq->d_id), ddq); in xfs_dqcheck()
123 if (ddq->d_ino_softlimit && in xfs_dqcheck()
124 be64_to_cpu(ddq->d_icount) > in xfs_dqcheck()
125 be64_to_cpu(ddq->d_ino_softlimit)) { in xfs_dqcheck()
126 if (!ddq->d_itimer) { in xfs_dqcheck()
130 str, (int)be32_to_cpu(ddq->d_id), ddq); in xfs_dqcheck()
134 if (ddq->d_rtb_softlimit && in xfs_dqcheck()
135 be64_to_cpu(ddq->d_rtbcount) > in xfs_dqcheck()
136 be64_to_cpu(ddq->d_rtb_softlimit)) { in xfs_dqcheck()
137 if (!ddq->d_rtbtimer) { in xfs_dqcheck()
141 str, (int)be32_to_cpu(ddq->d_id), ddq); in xfs_dqcheck()
236 struct xfs_disk_dquot *ddq; in xfs_dquot_buf_verify() local
239 ddq = &d[i].dd_diskdq; in xfs_dquot_buf_verify()
242 id = be32_to_cpu(ddq->d_id); in xfs_dquot_buf_verify()
244 error = xfs_dqcheck(mp, ddq, id + i, 0, warn, __func__); in xfs_dquot_buf_verify()