ocfs2: Add parenthesis to wrap the check for O_DIRECT.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Monday, February 8, 2010 - 5:59 pm

Gitweb:     http://git.kernel.org/linus/60c486744c9a30ea60fa863e9587242dde2fe4bd
Commit:     60c486744c9a30ea60fa863e9587242dde2fe4bd
Parent:     0a1ea437d87af830786605813972e8e277992917
Author:     Tao Ma <tao.ma@oracle.com>
AuthorDate: Wed Feb 3 09:56:04 2010 +0800
Committer:  Joel Becker <joel.becker@oracle.com>
CommitDate: Tue Feb 2 18:15:37 2010 -0800

    ocfs2: Add parenthesis to wrap the check for O_DIRECT.
    
    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 |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/ocfs2/file.c b/fs/ocfs2/file.c
index 65e9375..558ce03 100644
--- a/fs/ocfs2/file.c
+++ b/fs/ocfs2/file.c
@@ -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)
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
ocfs2: Add parenthesis to wrap the check for O_DIRECT., Linux Kernel Mailing ..., (Mon Feb 8, 5:59 pm)