Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[linux-2.6-block.git] / fs / fcntl.c
index 350a2c8cfd28f3f1339613b31564da1c2422e917..6e2771c210f63a177591bb0dd11e61bdc95bb6a2 100644 (file)
@@ -52,7 +52,7 @@ static int setfl(int fd, struct file * filp, unsigned long arg)
                   arg |= O_NONBLOCK;
 
        /* Pipe packetized mode is controlled by O_DIRECT flag */
-       if (!S_ISFIFO(filp->f_inode->i_mode) && (arg & O_DIRECT)) {
+       if (!S_ISFIFO(inode->i_mode) && (arg & O_DIRECT)) {
                if (!filp->f_mapping || !filp->f_mapping->a_ops ||
                        !filp->f_mapping->a_ops->direct_IO)
                                return -EINVAL;