/* free_mem_extents - free a list of memory extents @list - list of extents to empty  */
static void free_mem_extents(struct list_head *list)
/* free_mem_extents - free a list of memory extents @list - list of extents to empty  */
static void free_mem_extents(struct list_head *list)
{
	struct mem_extent *ext, *aux;
	list_for_each_entry_safe(ext, aux, list, hook) {
		list_del(&ext->hook);
		kfree(ext);
	}
}