/* ubifs_destroy_size_tree - free resources related to the size tree.  */
void ubifs_destroy_size_tree(struct ubifs_info *c)
/* ubifs_destroy_size_tree - free resources related to the size tree.  */
void ubifs_destroy_size_tree(struct ubifs_info *c)
{
	struct size_entry *e, *n;
	rbtree_postorder_for_each_entry_safe(e, n, &c->size_tree, rb) {
		if (e->inode)
			iput(e->inode);
		kfree(e);
	}
	c->size_tree = RB_ROOT;
}