summaryrefslogtreecommitdiffstats
path: root/arch/cris
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2015-01-13 18:57:53 +0100
committerAl Viro <viro@zeniv.linux.org.uk>2015-01-20 09:04:36 +0100
commitfb32c76d16aa40f3057f53273ac483a8e2468004 (patch)
treeaec3d23af76264c109ce3e2c54b88715fc6c55e8 /arch/cris
parentfix deadlock in cifs_ioctl_clone() (diff)
downloadlinux-fb32c76d16aa40f3057f53273ac483a8e2468004.tar.xz
linux-fb32c76d16aa40f3057f53273ac483a8e2468004.zip
VFS: Convert file->f_dentry->d_inode to file_inode()
Convert file->f_dentry->d_inode to file_inode() so as to get layered filesystems right. Found with: git grep '[.>]f_dentry' Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/cris')
-rw-r--r--arch/cris/arch-v32/drivers/sync_serial.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/cris/arch-v32/drivers/sync_serial.c b/arch/cris/arch-v32/drivers/sync_serial.c
index 08a313fc2241..f772068d9e79 100644
--- a/arch/cris/arch-v32/drivers/sync_serial.c
+++ b/arch/cris/arch-v32/drivers/sync_serial.c
@@ -604,7 +604,7 @@ static ssize_t __sync_serial_read(struct file *file,
struct timespec *ts)
{
unsigned long flags;
- int dev = MINOR(file->f_dentry->d_inode->i_rdev);
+ int dev = MINOR(file_inode(file)->i_rdev);
int avail;
struct sync_port *port;
unsigned char *start;