summaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/file.c
diff options
context:
space:
mode:
authorColy Li <coly.li@suse.de>2010-02-25 07:57:13 +0100
committerJoel Becker <joel.becker@oracle.com>2010-02-27 00:41:18 +0100
commit66b116c9d8f70baadf5b2145dddb35af222df041 (patch)
treeb1e7592378c5eb14c03a8928795c627ed0f8bc40 /fs/ocfs2/file.c
parentocfs2_dlmfs: Enable the use of user cluster stacks. (diff)
downloadlinux-66b116c9d8f70baadf5b2145dddb35af222df041.tar.xz
linux-66b116c9d8f70baadf5b2145dddb35af222df041.zip
ocfs2: fix warning in ocfs2_file_aio_write()
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>
Diffstat (limited to 'fs/ocfs2/file.c')
-rw-r--r--fs/ocfs2/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ocfs2/file.c b/fs/ocfs2/file.c
index da097bd07b72..c8a4a2939e55 100644
--- a/fs/ocfs2/file.c
+++ b/fs/ocfs2/file.c
@@ -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;
}