VFS: Convert file->f_dentry->d_inode to file_inode()
PATCH 1/1 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'
---
arch/cris/arch-v32/drivers/sync_serial.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/cris/arch-v32/drivers/sync_serial.c +1 -1
@@ -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_inode)->i_rdev);int avail;struct sync_port *port;unsigned char *start;
Al Viro
maintainerQuoted 4 lines · David Howells
Convert
file->f_dentry->d_inodetofile_inode()so as to get layered filesystems right.Found with: git grep '[.>]f_dentry'
ACK. I wonder how that got missed during f_dentry elimination - even the macro is gone these days...
Quoted 16 lines · David Howells
Convert
file->f_dentry->d_inodetofile_inode()so as to get layered filesystems right.Found with: git grep '[.>]f_dentry'
Signed-off-by David Howells <[email protected]>---
arch/cris/arch-v32/drivers/sync_serial.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/cris/arch-v32/drivers/sync_serial.c +0
-0
arch/cris/arch-v32/drivers/sync_serial.c static ssize_t __sync_serial_read(struct file *file, · line 607
Quoted 5 lines
arch/cris/arch-v32/drivers/sync_serial.c +1
-1@@ -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_inode)->i_rdev);
Shouldn't that be file_inode(file) ?
Quoted 9 lines
arch/cris/arch-v32/drivers/sync_serial.c +0
-1int avail;struct sync_port *port;unsigned char *start; --To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Marc
Quoted 1 line · Marc Dionne
Shouldn't that be
file_inode(file)?
Bah, yes.