diff options
author | Tao Ma <tao.ma@oracle.com> | 2010-02-03 09:56:04 +0800 |
---|---|---|
committer | Joel Becker <joel.becker@oracle.com> | 2010-02-02 18:15:37 -0800 |
commit | 60c486744c9a30ea60fa863e9587242dde2fe4bd (patch) | |
tree | e93e3752955a5ae8faf39e957eb46d5586534531 /fs/ocfs2/file.c | |
parent | 0a1ea437d87af830786605813972e8e277992917 (diff) | |
download | kernel_samsung_crespo-60c486744c9a30ea60fa863e9587242dde2fe4bd.zip kernel_samsung_crespo-60c486744c9a30ea60fa863e9587242dde2fe4bd.tar.gz kernel_samsung_crespo-60c486744c9a30ea60fa863e9587242dde2fe4bd.tar.bz2 |
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>
Diffstat (limited to 'fs/ocfs2/file.c')
-rw-r--r-- | 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) |