/* Allocate and initialize an quotaoff item of the correct quota type(s).  */
xfs_qoff_logitem_t* xfs_qm_qoff_logitem_init(struct xfs_mount *mp, xfs_qoff_logitem_t *start, uint flags)
/* Allocate and initialize an quotaoff item of the correct quota type(s).  */
xfs_qoff_logitem_t* xfs_qm_qoff_logitem_init(struct xfs_mount *mp, xfs_qoff_logitem_t *start, uint flags)
{
	xfs_qoff_logitem_t	*qf;
	qf = (xfs_qoff_logitem_t*) kmem_zalloc(sizeof(xfs_qoff_logitem_t), KM_SLEEP);
	qf->qql_item.li_type = XFS_LI_QUOTAOFF;
	if (start)
		qf->qql_item.li_ops = &xfs_qm_qoffend_logitem_ops;
	else
		qf->qql_item.li_ops = &xfs_qm_qoff_logitem_ops;
	qf->qql_item.li_mountp = mp;
	qf->qql_format.qf_type = XFS_LI_QUOTAOFF;
	qf->qql_format.qf_flags = flags;
	qf->qql_start_lip = start;
	return (qf);
}