/* This is called to free all the memory associated with a dquot  */
void xfs_qm_dqdestroy(xfs_dquot_t *dqp)
/* This is called to free all the memory associated with a dquot  */
void xfs_qm_dqdestroy(xfs_dquot_t *dqp)
{
	ASSERT(! XFS_DQ_IS_ON_FREELIST(dqp));
	mutex_destroy(&dqp->q_qlock);
	sv_destroy(&dqp->q_pinwait);
	kmem_zone_free(xfs_Gqm->qm_dqzone, dqp);
	atomic_dec(&xfs_Gqm->qm_totaldquots);
}