/* idr_destroy - release all cached layers within an idr tree idp: idr handle  */
void idr_destroy(struct idr *idp)
/* idr_destroy - release all cached layers within an idr tree idp: idr handle  */
void idr_destroy(struct idr *idp)
{
	while (idp->id_free_cnt) {
		struct idr_layer *p = get_from_free_list(idp);
		kmem_cache_free(idr_layer_cache, p);
	}
}