/* RETURNS: Resulting block_device on success, NULL on failure.  */
struct block_device* bdget_disk(struct gendisk *disk, int partno)
/* RETURNS: Resulting block_device on success, NULL on failure.  */
struct block_device* bdget_disk(struct gendisk *disk, int partno)
{
	struct hd_struct *part;
	struct block_device *bdev = NULL;
	part = disk_get_part(disk, partno);
	if (part)
		bdev = bdget(part_devt(part));
	disk_put_part(part);
	return bdev;
}