Commit fb32c76d16aa40f3057f53273ac483a8e2468004

Authored by David Howells
Committed by Al Viro
1 parent 378ff1a53b

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

arch/cris/arch-v32/drivers/sync_serial.c
... ... @@ -604,7 +604,7 @@
604 604 struct timespec *ts)
605 605 {
606 606 unsigned long flags;
607   - int dev = MINOR(file->f_dentry->d_inode->i_rdev);
  607 + int dev = MINOR(file_inode(file)->i_rdev);
608 608 int avail;
609 609 struct sync_port *port;
610 610 unsigned char *start;