ocfs2: Add parenthesis to wrap the check for O_DIRECT.
authorTao Ma <tao.ma@oracle.com>
Wed, 3 Feb 2010 01:56:04 +0000 (09:56 +0800)
committerJoel Becker <joel.becker@oracle.com>
Wed, 3 Feb 2010 02:15:37 +0000 (18:15 -0800)
Add parenthesis to wrap the check for O_DIRECT.

Signed-off-by: Tao Ma <tao.ma@oracle.com>
Signed-off-by: Joel Becker <joel.becker@oracle.com>
fs/ocfs2/file.c

index 65e9375d2fb35b331027eb2e185a3ee1d7d29e50..558ce03124210049742360210efff968232c668f 100644 (file)
@@ -2013,8 +2013,8 @@ out_dio:
        /* buffered aio wouldn't have proper lock coverage today */
        BUG_ON(ret == -EIOCBQUEUED && !(file->f_flags & O_DIRECT));
 
-       if ((file->f_flags & O_DSYNC && !direct_io) || IS_SYNC(inode) ||
-           (file->f_flags & O_DIRECT && has_refcount)) {
+       if (((file->f_flags & O_DSYNC) && !direct_io) || IS_SYNC(inode) ||
+           ((file->f_flags & O_DIRECT) && has_refcount)) {
                ret = filemap_fdatawrite_range(file->f_mapping, pos,
                                               pos + count - 1);
                if (ret < 0)