diff options
author | Josef Sipek <jsipek@fsl.cs.sunysb.edu> | 2006-12-08 05:37:37 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-08 11:28:49 -0500 |
commit | 7ac6207b2a6a5b828bc333f2530a3bd48197af3e (patch) | |
tree | 5ca70052708db527a5c72dfb96c7280f0eb53618 /drivers | |
parent | 7fa95f726aba6033d7baffcfda484c31b8cfe153 (diff) |
[PATCH] struct path: convert scsi
Signed-off-by: Josef Sipek <jsipek@fsl.cs.sunysb.edu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/scsi/sd.c | 2 | ||||
-rw-r--r-- | drivers/scsi/st.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c index f6a452846fab..978bfc1e0c6a 100644 --- a/drivers/scsi/sd.c +++ b/drivers/scsi/sd.c | |||
@@ -863,7 +863,7 @@ static void sd_rescan(struct device *dev) | |||
863 | */ | 863 | */ |
864 | static long sd_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg) | 864 | static long sd_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg) |
865 | { | 865 | { |
866 | struct block_device *bdev = file->f_dentry->d_inode->i_bdev; | 866 | struct block_device *bdev = file->f_path.dentry->d_inode->i_bdev; |
867 | struct gendisk *disk = bdev->bd_disk; | 867 | struct gendisk *disk = bdev->bd_disk; |
868 | struct scsi_device *sdev = scsi_disk(disk)->device; | 868 | struct scsi_device *sdev = scsi_disk(disk)->device; |
869 | 869 | ||
diff --git a/drivers/scsi/st.c b/drivers/scsi/st.c index 587274dd7059..e016e0906e1a 100644 --- a/drivers/scsi/st.c +++ b/drivers/scsi/st.c | |||
@@ -922,7 +922,7 @@ static int check_tape(struct scsi_tape *STp, struct file *filp) | |||
922 | struct st_modedef *STm; | 922 | struct st_modedef *STm; |
923 | struct st_partstat *STps; | 923 | struct st_partstat *STps; |
924 | char *name = tape_name(STp); | 924 | char *name = tape_name(STp); |
925 | struct inode *inode = filp->f_dentry->d_inode; | 925 | struct inode *inode = filp->f_path.dentry->d_inode; |
926 | int mode = TAPE_MODE(inode); | 926 | int mode = TAPE_MODE(inode); |
927 | 927 | ||
928 | STp->ready = ST_READY; | 928 | STp->ready = ST_READY; |