/* fills in the vector of log iovecs for the given dquot log item.  */
STATIC void xfs_qm_dquot_logitem_format(xfs_dq_logitem_t *logitem, xfs_log_iovec_t *logvec)
/* fills in the vector of log iovecs for the given dquot log item.  */
STATIC void xfs_qm_dquot_logitem_format(xfs_dq_logitem_t *logitem, xfs_log_iovec_t *logvec)
{
	ASSERT(logitem);
	ASSERT(logitem->qli_dquot);
	logvec->i_addr = (xfs_caddr_t)&logitem->qli_format;
	logvec->i_len  = sizeof(xfs_dq_logformat_t);
	XLOG_VEC_SET_TYPE(logvec, XLOG_REG_TYPE_QFORMAT);
	logvec++;
	logvec->i_addr = (xfs_caddr_t)&logitem->qli_dquot->q_core;
	logvec->i_len  = sizeof(xfs_disk_dquot_t);
	XLOG_VEC_SET_TYPE(logvec, XLOG_REG_TYPE_DQUOT);
	ASSERT(2 == logitem->qli_item.li_desc->lid_size);
	logitem->qli_format.qlf_size = 2;
}