new helper: file_inode(file)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
@@ -1582,7 +1582,7 @@ asmlinkage long compat_sys_ioctl(unsigned int fd, unsigned int cmd,
|
||||
case FIBMAP:
|
||||
case FIGETBSZ:
|
||||
case FIONREAD:
|
||||
if (S_ISREG(f.file->f_path.dentry->d_inode->i_mode))
|
||||
if (S_ISREG(file_inode(f.file)->i_mode))
|
||||
break;
|
||||
/*FALL THROUGH*/
|
||||
|
||||
|
Reference in New Issue
Block a user