/* find_ino - find an entry on the size tree.  */
static struct size_entry* find_ino(struct ubifs_info *c, ino_t inum)
/* find_ino - find an entry on the size tree.  */
static struct size_entry* find_ino(struct ubifs_info *c, ino_t inum)
{
	struct rb_node *p = c->size_tree.rb_node;
	struct size_entry *e;
	while (p) {
		e = rb_entry(p, struct size_entry, rb);
		if (inum < e->inum)
			p = p->rb_left;
		else if (inum > e->inum)
			p = p->rb_right;
		else
			return e;
	}
	return NULL;
}