/* yaffsfs_FindInodeIdForObject Find the inode entry for an object, if it exists.  */
static int yaffsfs_FindInodeIdForObject(struct yaffs_obj *obj)
/* yaffsfs_FindInodeIdForObject Find the inode entry for an object, if it exists.  */
static int yaffsfs_FindInodeIdForObject(struct yaffs_obj *obj)
{
	int i;
	int ret = -1;
	if (obj)
		obj = yaffs_get_equivalent_obj(obj);
	for (i = 0; i < YAFFSFS_N_HANDLES && ret < 0; i++) {
		if (yaffsfs_inode[i].iObj == obj)
			ret = i;
	}
	return ret;
}