Home
last modified time | relevance | path

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

/openbmc/linux/fs/xfs/libxfs/
H A Dxfs_dquot_buf.c106 struct xfs_dqblk *dqb, in xfs_dqblk_verify() argument
110 !uuid_equal(&dqb->dd_uuid, &mp->m_sb.sb_meta_uuid)) in xfs_dqblk_verify()
113 return xfs_dquot_verify(mp, &dqb->dd_diskdq, id); in xfs_dqblk_verify()
122 struct xfs_dqblk *dqb, in xfs_dqblk_repair() argument
130 memset(dqb, 0, sizeof(struct xfs_dqblk)); in xfs_dqblk_repair()
132 dqb->dd_diskdq.d_magic = cpu_to_be16(XFS_DQUOT_MAGIC); in xfs_dqblk_repair()
133 dqb->dd_diskdq.d_version = XFS_DQUOT_VERSION; in xfs_dqblk_repair()
134 dqb->dd_diskdq.d_type = type; in xfs_dqblk_repair()
135 dqb->dd_diskdq.d_id = cpu_to_be32(id); in xfs_dqblk_repair()
138 uuid_copy(&dqb->dd_uuid, &mp->m_sb.sb_meta_uuid); in xfs_dqblk_repair()
[all …]
H A Dxfs_quota_defs.h136 struct xfs_dqblk *dqb, xfs_dqid_t id);
138 extern void xfs_dqblk_repair(struct xfs_mount *mp, struct xfs_dqblk *dqb,
/openbmc/linux/fs/xfs/
H A Dxfs_dquot_item_recover.c69 struct xfs_dqblk *dqb; in xlog_recover_dquot_commit_pass2() local
135 dqb = xfs_buf_offset(bp, dq_f->qlf_boffset); in xlog_recover_dquot_commit_pass2()
136 ddq = &dqb->dd_diskdq; in xlog_recover_dquot_commit_pass2()
143 xfs_lsn_t lsn = be64_to_cpu(dqb->dd_lsn); in xlog_recover_dquot_commit_pass2()
152 xfs_update_cksum((char *)dqb, sizeof(struct xfs_dqblk), in xlog_recover_dquot_commit_pass2()
157 fa = xfs_dqblk_verify(log->l_mp, dqb, dq_f->qlf_id); in xlog_recover_dquot_commit_pass2()
160 XFS_ERRLEVEL_LOW, mp, dqb, in xlog_recover_dquot_commit_pass2()
H A Dxfs_qm.c842 struct xfs_dqblk *dqb; in xfs_qm_reset_dqcounts() local
856 dqb = bp->b_addr; in xfs_qm_reset_dqcounts()
860 ddq = (struct xfs_disk_dquot *)&dqb[j]; in xfs_qm_reset_dqcounts()
868 if (xfs_dqblk_verify(mp, &dqb[j], id + j) || in xfs_qm_reset_dqcounts()
869 (dqb[j].dd_diskdq.d_type & XFS_DQTYPE_REC_MASK) != type) in xfs_qm_reset_dqcounts()
870 xfs_dqblk_repair(mp, &dqb[j], id + j, type); in xfs_qm_reset_dqcounts()
898 xfs_update_cksum((char *)&dqb[j], in xfs_qm_reset_dqcounts()
H A Dxfs_dquot.c564 struct xfs_dqblk *dqb = xfs_buf_offset(bp, dqp->q_bufoffset); in xfs_dquot_from_disk() local
565 struct xfs_disk_dquot *ddqp = &dqb->dd_diskdq; in xfs_dquot_from_disk()