/* Free up any items left in the list.  */
void xfs_bmap_cancel(xfs_bmap_free_t *flist)
/* Free up any items left in the list.  */
void xfs_bmap_cancel(xfs_bmap_free_t *flist)
{
	xfs_bmap_free_item_t	*free;
	xfs_bmap_free_item_t	*next;
	if (flist->xbf_count == 0)
		return;
	ASSERT(flist->xbf_first != NULL);
	for (free = flist->xbf_first; free; free = next) {
		next = free->xbfi_next;
		xfs_bmap_del_free(flist, NULL, free);
	}
	ASSERT(flist->xbf_count == 0);
}