]> Pileus Git - ~andy/linux/blobdiff - fs/autofs4/autofs_i.h
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wirel...
[~andy/linux] / fs / autofs4 / autofs_i.h
index b785e77079595d81bec518138e730297d3ee33d6..3f1128b37e462cd3ef65560137e2194fe816990e 100644 (file)
@@ -273,7 +273,7 @@ static inline int autofs_prepare_pipe(struct file *pipe)
 {
        if (!pipe->f_op || !pipe->f_op->write)
                return -EINVAL;
-       if (!S_ISFIFO(pipe->f_dentry->d_inode->i_mode))
+       if (!S_ISFIFO(file_inode(pipe)->i_mode))
                return -EINVAL;
        /* We want a packet pipe */
        pipe->f_flags |= O_DIRECT;