ocfs2: fix warning in ocfs2_file_aio_write()
authorColy Li <coly.li@suse.de>
Thu, 25 Feb 2010 06:57:13 +0000 (14:57 +0800)
committerJoel Becker <joel.becker@oracle.com>
Fri, 26 Feb 2010 23:41:18 +0000 (15:41 -0800)
This patch fixes a compiling warning in ocfs2_file_aio_write().

Signed-off-by: Coly Li <coly.li@suse.de>
Signed-off-by: Joel Becker <joel.becker@oracle.com>
fs/ocfs2/file.c

index da097bd..c8a4a29 100644 (file)
@@ -2041,7 +2041,7 @@ out_dio:
         * async dio is going to do it in the future or an end_io after an
         * error has already done it.
         */
-       if (ret == -EIOCBQUEUED || !ocfs2_iocb_is_rw_locked(iocb)) {
+       if ((ret == -EIOCBQUEUED) || (!ocfs2_iocb_is_rw_locked(iocb))) {
                rw_level = -1;
                have_alloc_sem = 0;
        }