Commit a03ab788 authored by Coly Li's avatar Coly Li Committed by Joel Becker

ocfs2: one more warning fix in ocfs2_file_aio_write(), v2

This patch fixes another compiling warning in ocfs2_file_aio_write() like this,
    fs/ocfs2/file.c: In function ‘ocfs2_file_aio_write’:
    fs/ocfs2/file.c:2026: warning: suggest parentheses around ‘&&’ within ‘||’

As Joel suggested, '!ret' is unary, this version removes the wrap from '!ret'.
Signed-off-by: default avatarColy Li <coly.li@suse.de>
Signed-off-by: default avatarJoel Becker <joel.becker@oracle.com>
parent efd647f7
...@@ -2021,8 +2021,8 @@ out_dio: ...@@ -2021,8 +2021,8 @@ out_dio:
if (ret < 0) if (ret < 0)
written = ret; written = ret;
if (!ret && (old_size != i_size_read(inode) || if (!ret && ((old_size != i_size_read(inode)) ||
old_clusters != OCFS2_I(inode)->ip_clusters || (old_clusters != OCFS2_I(inode)->ip_clusters) ||
has_refcount)) { has_refcount)) {
ret = jbd2_journal_force_commit(osb->journal->j_journal); ret = jbd2_journal_force_commit(osb->journal->j_journal);
if (ret < 0) if (ret < 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment