/* memory_bm_free - free memory occupied by the memory bitmap @bm  */
static void memory_bm_free(struct memory_bitmap *bm, int clear_nosave_free)
/* memory_bm_free - free memory occupied by the memory bitmap @bm  */
static void memory_bm_free(struct memory_bitmap *bm, int clear_nosave_free)
{
	struct bm_block *bb;
	list_for_each_entry(bb, &bm->blocks, hook)
		if (bb->data)
			free_image_page(bb->data, clear_nosave_free);
	free_list_of_pages(bm->p_list, clear_nosave_free);
	INIT_LIST_HEAD(&bm->blocks);
}