new helper: file_inode(file)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
@@ -1170,7 +1170,7 @@ ssize_t splice_direct_to_actor(struct file *in, struct splice_desc *sd,
|
||||
* randomly drop data for eg socket -> socket splicing. Use the
|
||||
* piped splicing for that!
|
||||
*/
|
||||
i_mode = in->f_path.dentry->d_inode->i_mode;
|
||||
i_mode = file_inode(in)->i_mode;
|
||||
if (unlikely(!S_ISREG(i_mode) && !S_ISBLK(i_mode)))
|
||||
return -EINVAL;
|
||||
|
||||
|
Reference in New Issue
Block a user