Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[PATCH] switch xen

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

Al Viro a63c848b 961846ca

+9 -10
+9 -10
drivers/block/xen-blkfront.c
··· 156 156 return 0; 157 157 } 158 158 159 - static int blkif_ioctl(struct inode *inode, struct file *filep, 159 + static int blkif_ioctl(struct block_device *bdev, fmode_t mode, 160 160 unsigned command, unsigned long argument) 161 161 { 162 - struct blkfront_info *info = 163 - inode->i_bdev->bd_disk->private_data; 162 + struct blkfront_info *info = bdev->bd_disk->private_data; 164 163 int i; 165 164 166 165 dev_dbg(&info->xbdev->dev, "command: 0x%x, argument: 0x%lx\n", ··· 1013 1014 return info->is_ready; 1014 1015 } 1015 1016 1016 - static int blkif_open(struct inode *inode, struct file *filep) 1017 + static int blkif_open(struct block_device *bdev, fmode_t mode) 1017 1018 { 1018 - struct blkfront_info *info = inode->i_bdev->bd_disk->private_data; 1019 + struct blkfront_info *info = bdev->bd_disk->private_data; 1019 1020 info->users++; 1020 1021 return 0; 1021 1022 } 1022 1023 1023 - static int blkif_release(struct inode *inode, struct file *filep) 1024 + static int blkif_release(struct gendisk *disk, fmode_t mode) 1024 1025 { 1025 - struct blkfront_info *info = inode->i_bdev->bd_disk->private_data; 1026 + struct blkfront_info *info = disk->private_data; 1026 1027 info->users--; 1027 1028 if (info->users == 0) { 1028 1029 /* Check whether we have been instructed to close. We will ··· 1040 1041 static struct block_device_operations xlvbd_block_fops = 1041 1042 { 1042 1043 .owner = THIS_MODULE, 1043 - .__open = blkif_open, 1044 - .__release = blkif_release, 1044 + .open = blkif_open, 1045 + .release = blkif_release, 1045 1046 .getgeo = blkif_getgeo, 1046 - .ioctl = blkif_ioctl, 1047 + .locked_ioctl = blkif_ioctl, 1047 1048 }; 1048 1049 1049 1050