/* Add the locked dquot to the transaction. The dquot must be locked, and it cannot be associated with any transaction.  */
void xfs_trans_dqjoin(xfs_trans_t *tp, xfs_dquot_t *dqp)
/* Add the locked dquot to the transaction. The dquot must be locked, and it cannot be associated with any transaction.  */
void xfs_trans_dqjoin(xfs_trans_t *tp, xfs_dquot_t *dqp)
{
	xfs_dq_logitem_t    *lp;
	ASSERT(! XFS_DQ_IS_ADDEDTO_TRX(tp, dqp));
	ASSERT(XFS_DQ_IS_LOCKED(dqp));
	ASSERT(XFS_DQ_IS_LOGITEM_INITD(dqp));
	lp = &dqp->q_logitem;
	(void) xfs_trans_add_item(tp, (xfs_log_item_t*)(lp));
	dqp->q_transp = tp;
}