Commit 7ac6207b authored by Josef Sipek's avatar Josef Sipek Committed by Linus Torvalds

[PATCH] struct path: convert scsi

Signed-off-by: default avatarJosef Sipek <jsipek@fsl.cs.sunysb.edu>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 7fa95f72
...@@ -863,7 +863,7 @@ static void sd_rescan(struct device *dev) ...@@ -863,7 +863,7 @@ static void sd_rescan(struct device *dev)
*/ */
static long sd_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg) static long sd_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
{ {
struct block_device *bdev = file->f_dentry->d_inode->i_bdev; struct block_device *bdev = file->f_path.dentry->d_inode->i_bdev;
struct gendisk *disk = bdev->bd_disk; struct gendisk *disk = bdev->bd_disk;
struct scsi_device *sdev = scsi_disk(disk)->device; struct scsi_device *sdev = scsi_disk(disk)->device;
......
...@@ -922,7 +922,7 @@ static int check_tape(struct scsi_tape *STp, struct file *filp) ...@@ -922,7 +922,7 @@ static int check_tape(struct scsi_tape *STp, struct file *filp)
struct st_modedef *STm; struct st_modedef *STm;
struct st_partstat *STps; struct st_partstat *STps;
char *name = tape_name(STp); char *name = tape_name(STp);
struct inode *inode = filp->f_dentry->d_inode; struct inode *inode = filp->f_path.dentry->d_inode;
int mode = TAPE_MODE(inode); int mode = TAPE_MODE(inode);
STp->ready = ST_READY; STp->ready = ST_READY;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment