new helper: file_inode(file)
[deliverable/linux.git] / fs / splice.c
index 6909d89d0da56ffd929a2114b0228a03d1f35589..963213d564032f836d2fe0957eeb2080e602a48e 100644 (file)
@@ -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;
 
This page took 0.025266 seconds and 5 git commands to generate.