/* Initialize the dquot log item for a newly allocated dquot. The dquot isn't locked at this point, but it isn't on any of the lists either, so we don't care.  */
void xfs_qm_dquot_logitem_init(struct xfs_dquot *dqp)
/* Initialize the dquot log item for a newly allocated dquot. The dquot isn't locked at this point, but it isn't on any of the lists either, so we don't care.  */
void xfs_qm_dquot_logitem_init(struct xfs_dquot *dqp)
{
	xfs_dq_logitem_t  *lp;
	lp = &dqp->q_logitem;
	lp->qli_item.li_type = XFS_LI_DQUOT;
	lp->qli_item.li_ops = &xfs_dquot_item_ops;
	lp->qli_item.li_mountp = dqp->q_mount;
	lp->qli_dquot = dqp;
	lp->qli_format.qlf_type = XFS_LI_DQUOT;
	lp->qli_format.qlf_id = be32_to_cpu(dqp->q_core.d_id);
	lp->qli_format.qlf_blkno = dqp->q_blkno;
	lp->qli_format.qlf_len = 1;
	lp->qli_format.qlf_boffset = (__uint32_t)dqp->q_bufoffset;
}