diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2008-03-02 09:27:11 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2008-10-21 07:47:47 -0400 |
commit | 47844fadb5050a6fb90924e73eb2dea1afd7fe33 (patch) | |
tree | 47938e3a7d7fbdee09ca7b6ba906c980b8f97bbd /drivers/block/cpqarray.c | |
parent | ef7822c2fbbb004e30e1fb6f79d6f8a1a1a144d7 (diff) |
[PATCH] switch cpqarray
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/block/cpqarray.c')
-rw-r--r-- | drivers/block/cpqarray.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/drivers/block/cpqarray.c b/drivers/block/cpqarray.c index b71334b968b..47d233c6d0b 100644 --- a/drivers/block/cpqarray.c +++ b/drivers/block/cpqarray.c | |||
@@ -156,9 +156,9 @@ static int sendcmd( | |||
156 | unsigned int blkcnt, | 156 | unsigned int blkcnt, |
157 | unsigned int log_unit ); | 157 | unsigned int log_unit ); |
158 | 158 | ||
159 | static int ida_open(struct inode *inode, struct file *filep); | 159 | static int ida_open(struct block_device *bdev, fmode_t mode); |
160 | static int ida_release(struct inode *inode, struct file *filep); | 160 | static int ida_release(struct gendisk *disk, fmode_t mode); |
161 | static int ida_ioctl(struct inode *inode, struct file *filep, unsigned int cmd, unsigned long arg); | 161 | static int ida_ioctl(struct block_device *bdev, fmode_t mode, unsigned int cmd, unsigned long arg); |
162 | static int ida_getgeo(struct block_device *bdev, struct hd_geometry *geo); | 162 | static int ida_getgeo(struct block_device *bdev, struct hd_geometry *geo); |
163 | static int ida_ctlr_ioctl(ctlr_info_t *h, int dsk, ida_ioctl_t *io); | 163 | static int ida_ctlr_ioctl(ctlr_info_t *h, int dsk, ida_ioctl_t *io); |
164 | 164 | ||
@@ -195,9 +195,9 @@ static inline ctlr_info_t *get_host(struct gendisk *disk) | |||
195 | 195 | ||
196 | static struct block_device_operations ida_fops = { | 196 | static struct block_device_operations ida_fops = { |
197 | .owner = THIS_MODULE, | 197 | .owner = THIS_MODULE, |
198 | .__open = ida_open, | 198 | .open = ida_open, |
199 | .__release = ida_release, | 199 | .release = ida_release, |
200 | .__ioctl = ida_ioctl, | 200 | .locked_ioctl = ida_ioctl, |
201 | .getgeo = ida_getgeo, | 201 | .getgeo = ida_getgeo, |
202 | .revalidate_disk= ida_revalidate, | 202 | .revalidate_disk= ida_revalidate, |
203 | }; | 203 | }; |
@@ -818,12 +818,12 @@ DBGINFO( | |||
818 | /* | 818 | /* |
819 | * Open. Make sure the device is really there. | 819 | * Open. Make sure the device is really there. |
820 | */ | 820 | */ |
821 | static int ida_open(struct inode *inode, struct file *filep) | 821 | static int ida_open(struct block_device *bdev, fmode_t mode) |
822 | { | 822 | { |
823 | drv_info_t *drv = get_drv(inode->i_bdev->bd_disk); | 823 | drv_info_t *drv = get_drv(bdev->bd_disk); |
824 | ctlr_info_t *host = get_host(inode->i_bdev->bd_disk); | 824 | ctlr_info_t *host = get_host(bdev->bd_disk); |
825 | 825 | ||
826 | DBGINFO(printk("ida_open %s\n", inode->i_bdev->bd_disk->disk_name)); | 826 | DBGINFO(printk("ida_open %s\n", bdev->bd_disk->disk_name)); |
827 | /* | 827 | /* |
828 | * Root is allowed to open raw volume zero even if it's not configured | 828 | * Root is allowed to open raw volume zero even if it's not configured |
829 | * so array config can still work. I don't think I really like this, | 829 | * so array config can still work. I don't think I really like this, |
@@ -843,9 +843,9 @@ static int ida_open(struct inode *inode, struct file *filep) | |||
843 | /* | 843 | /* |
844 | * Close. Sync first. | 844 | * Close. Sync first. |
845 | */ | 845 | */ |
846 | static int ida_release(struct inode *inode, struct file *filep) | 846 | static int ida_release(struct gendisk *disk, fmode_t mode) |
847 | { | 847 | { |
848 | ctlr_info_t *host = get_host(inode->i_bdev->bd_disk); | 848 | ctlr_info_t *host = get_host(disk); |
849 | host->usage_count--; | 849 | host->usage_count--; |
850 | return 0; | 850 | return 0; |
851 | } | 851 | } |
@@ -1128,10 +1128,10 @@ static int ida_getgeo(struct block_device *bdev, struct hd_geometry *geo) | |||
1128 | * ida_ioctl does some miscellaneous stuff like reporting drive geometry, | 1128 | * ida_ioctl does some miscellaneous stuff like reporting drive geometry, |
1129 | * setting readahead and submitting commands from userspace to the controller. | 1129 | * setting readahead and submitting commands from userspace to the controller. |
1130 | */ | 1130 | */ |
1131 | static int ida_ioctl(struct inode *inode, struct file *filep, unsigned int cmd, unsigned long arg) | 1131 | static int ida_ioctl(struct block_device *bdev, fmode_t mode, unsigned int cmd, unsigned long arg) |
1132 | { | 1132 | { |
1133 | drv_info_t *drv = get_drv(inode->i_bdev->bd_disk); | 1133 | drv_info_t *drv = get_drv(bdev->bd_disk); |
1134 | ctlr_info_t *host = get_host(inode->i_bdev->bd_disk); | 1134 | ctlr_info_t *host = get_host(bdev->bd_disk); |
1135 | int error; | 1135 | int error; |
1136 | ida_ioctl_t __user *io = (ida_ioctl_t __user *)arg; | 1136 | ida_ioctl_t __user *io = (ida_ioctl_t __user *)arg; |
1137 | ida_ioctl_t *my_io; | 1137 | ida_ioctl_t *my_io; |
@@ -1165,7 +1165,7 @@ out_passthru: | |||
1165 | put_user(host->ctlr_sig, (int __user *)arg); | 1165 | put_user(host->ctlr_sig, (int __user *)arg); |
1166 | return 0; | 1166 | return 0; |
1167 | case IDAREVALIDATEVOLS: | 1167 | case IDAREVALIDATEVOLS: |
1168 | if (iminor(inode) != 0) | 1168 | if (MINOR(bdev->bd_dev) != 0) |
1169 | return -ENXIO; | 1169 | return -ENXIO; |
1170 | return revalidate_allvol(host); | 1170 | return revalidate_allvol(host); |
1171 | case IDADRIVERVERSION: | 1171 | case IDADRIVERVERSION: |