/* lc_destroy - frees memory allocated by lc_create() @lc: the lru cache to destroy  */
void lc_destroy(struct lru_cache *lc)
/* lc_destroy - frees memory allocated by lc_create() @lc: the lru cache to destroy  */
void lc_destroy(struct lru_cache *lc)
{
	unsigned i;
	if (!lc)
		return;
	for (i = 0; i < lc->nr_elements; i++)
		lc_free_by_index(lc, i);
	kfree(lc->lc_element);
	kfree(lc->lc_slot);
	kfree(lc);
}