/* return_unused_pool_pebs - returns unused PEB to the free tree. @ubi: UBI device description object @pool: fastmap pool description object  */
static void return_unused_pool_pebs(struct ubi_device *ubi, struct ubi_fm_pool *pool)
/* return_unused_pool_pebs - returns unused PEB to the free tree. @ubi: UBI device description object @pool: fastmap pool description object  */
static void return_unused_pool_pebs(struct ubi_device *ubi, struct ubi_fm_pool *pool)
{
	int i;
	struct ubi_wl_entry *e;
	for (i = pool->used; i < pool->size; i++) {
		e = ubi->lookuptbl[pool->pebs[i]];
		wl_tree_add(e, &ubi->free);
		ubi->free_count++;
	}
}