/* xfs_trans_free_busy Free all of the busy lists from a transaction  */
void xfs_trans_free_busy(xfs_trans_t *tp)
/* xfs_trans_free_busy Free all of the busy lists from a transaction  */
void xfs_trans_free_busy(xfs_trans_t *tp)
{
	xfs_log_busy_chunk_t	*lbcp;
	xfs_log_busy_chunk_t	*lbcq;
	lbcp = tp->t_busy.lbc_next;
	while (lbcp != NULL) {
		lbcq = lbcp->lbc_next;
		kmem_free(lbcp);
		lbcp = lbcq;
	}
	XFS_LBC_INIT(&tp->t_busy);
	tp->t_busy.lbc_unused = 0;
}