diff options
-rw-r--r-- | drivers/block/acsi_slm.c | 4 | ||||
-rw-r--r-- | drivers/block/cciss.c | 2 | ||||
-rw-r--r-- | drivers/block/loop.c | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/drivers/block/acsi_slm.c b/drivers/block/acsi_slm.c index 8e41c87b026e..e04be94d195c 100644 --- a/drivers/block/acsi_slm.c +++ b/drivers/block/acsi_slm.c | |||
@@ -363,7 +363,7 @@ static ssize_t slm_read( struct file *file, char *buf, size_t count, | |||
363 | loff_t *ppos ) | 363 | loff_t *ppos ) |
364 | 364 | ||
365 | { | 365 | { |
366 | struct inode *node = file->f_dentry->d_inode; | 366 | struct inode *node = file->f_path.dentry->d_inode; |
367 | unsigned long page; | 367 | unsigned long page; |
368 | int length; | 368 | int length; |
369 | int end; | 369 | int end; |
@@ -618,7 +618,7 @@ static ssize_t slm_write( struct file *file, const char *buf, size_t count, | |||
618 | loff_t *ppos ) | 618 | loff_t *ppos ) |
619 | 619 | ||
620 | { | 620 | { |
621 | struct inode *node = file->f_dentry->d_inode; | 621 | struct inode *node = file->f_path.dentry->d_inode; |
622 | int device = iminor(node); | 622 | int device = iminor(node); |
623 | int n, filled, w, h; | 623 | int n, filled, w, h; |
624 | 624 | ||
diff --git a/drivers/block/cciss.c b/drivers/block/cciss.c index 892e092afe9a..ee159edb6b88 100644 --- a/drivers/block/cciss.c +++ b/drivers/block/cciss.c | |||
@@ -535,7 +535,7 @@ static int do_ioctl(struct file *f, unsigned cmd, unsigned long arg) | |||
535 | { | 535 | { |
536 | int ret; | 536 | int ret; |
537 | lock_kernel(); | 537 | lock_kernel(); |
538 | ret = cciss_ioctl(f->f_dentry->d_inode, f, cmd, arg); | 538 | ret = cciss_ioctl(f->f_path.dentry->d_inode, f, cmd, arg); |
539 | unlock_kernel(); | 539 | unlock_kernel(); |
540 | return ret; | 540 | return ret; |
541 | } | 541 | } |
diff --git a/drivers/block/loop.c b/drivers/block/loop.c index beab6d2643cb..6b5b64207407 100644 --- a/drivers/block/loop.c +++ b/drivers/block/loop.c | |||
@@ -1000,7 +1000,7 @@ loop_get_status(struct loop_device *lo, struct loop_info64 *info) | |||
1000 | 1000 | ||
1001 | if (lo->lo_state != Lo_bound) | 1001 | if (lo->lo_state != Lo_bound) |
1002 | return -ENXIO; | 1002 | return -ENXIO; |
1003 | error = vfs_getattr(file->f_vfsmnt, file->f_dentry, &stat); | 1003 | error = vfs_getattr(file->f_path.mnt, file->f_path.dentry, &stat); |
1004 | if (error) | 1004 | if (error) |
1005 | return error; | 1005 | return error; |
1006 | memset(info, 0, sizeof(*info)); | 1006 | memset(info, 0, sizeof(*info)); |
@@ -1287,7 +1287,7 @@ loop_get_status_compat(struct loop_device *lo, | |||
1287 | 1287 | ||
1288 | static long lo_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg) | 1288 | static long lo_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg) |
1289 | { | 1289 | { |
1290 | struct inode *inode = file->f_dentry->d_inode; | 1290 | struct inode *inode = file->f_path.dentry->d_inode; |
1291 | struct loop_device *lo = inode->i_bdev->bd_disk->private_data; | 1291 | struct loop_device *lo = inode->i_bdev->bd_disk->private_data; |
1292 | int err; | 1292 | int err; |
1293 | 1293 | ||