All of lore.kernel.org
 help / color / mirror / Atom feed
* [Ocfs2-devel] [PATCH] ocfs2: fix warning in ocfs2_file_aio_write()
@ 2010-02-25  6:57 Coly Li
  2010-02-26 22:51 ` Joel Becker
  0 siblings, 1 reply; 2+ messages in thread
From: Coly Li @ 2010-02-25  6:57 UTC (permalink / raw)
  To: ocfs2-devel

This patch fixes a compiling warning in ocfs2_file_aio_write().

Signed-off-by: Coly Li <coly.li@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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-02-26 22:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-25  6:57 [Ocfs2-devel] [PATCH] ocfs2: fix warning in ocfs2_file_aio_write() Coly Li
2010-02-26 22:51 ` Joel Becker

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.