[Ocfs2-devel] [PATCH] ocfs2: fix warning in ocfs2_file_aio_write()
Coly Li
coly.li at suse.de
Wed Feb 24 22:57:13 PST 2010
This patch fixes a compiling warning in ocfs2_file_aio_write().
Signed-off-by: Coly Li <coly.li at suse.de>
---
fs/ocfs2/file.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/fs/ocfs2/file.c b/fs/ocfs2/file.c
index 558ce03..a712094 100644
--- a/fs/ocfs2/file.c
+++ b/fs/ocfs2/file.c
@@ -2043,7 +2043,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;
}
--
Coly Li
SuSE Labs
More information about the Ocfs2-devel
mailing list