/* ubifs_scan_destroy - destroy LEB scanning information. @sleb: scanning information to free  */
void ubifs_scan_destroy(struct ubifs_scan_leb *sleb)
/* ubifs_scan_destroy - destroy LEB scanning information. @sleb: scanning information to free  */
void ubifs_scan_destroy(struct ubifs_scan_leb *sleb)
{
	struct ubifs_scan_node *node;
	struct list_head *head;
	head = &sleb->nodes;
	while (!list_empty(head)) {
		node = list_entry(head->next, struct ubifs_scan_node, list);
		list_del(&node->list);
		kfree(node);
	}
	kfree(sleb);
}