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 da097bd07b729631c149c02f8789a165bee56fd9..c8a4a2939e550ef43f81f278996111cddc6506a2 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;
        }
This page took 0.026091 seconds and 5 git commands to generate.