/* Always use UUID for lookups if it's present, otherwise use name or dev.  */
static struct hash_cell* __find_device_hash_cell(struct dm_ioctl *param)
/* Always use UUID for lookups if it's present, otherwise use name or dev.  */
static struct hash_cell* __find_device_hash_cell(struct dm_ioctl *param)
{
	struct mapped_device *md;
	void *mdptr = NULL;
	if (*param->uuid)
		return __get_uuid_cell(param->uuid);
	if (*param->name)
		return __get_name_cell(param->name);
	md = dm_get_md(huge_decode_dev(param->dev));
	if (!md)
		goto out;
	mdptr = dm_get_mdptr(md);
	if (!mdptr)
		dm_put(md);
out:
	return mdptr;
}