summaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/file.c
diff options
context:
space:
mode:
authorWengang Wang <wen.gang.wang@oracle.com>2009-07-10 13:26:04 +0800
committerJoel Becker <joel.becker@oracle.com>2009-07-10 16:53:52 -0700
commit812e7a6a43fc34bc8f70c2b80db4ea5997d66ea8 (patch)
treee6bb0b870f7b17690ec81c118119afc910bcabec /fs/ocfs2/file.c
parent17ae26b669886efe237b77439e43eb390fceb119 (diff)
downloadop-kernel-dev-812e7a6a43fc34bc8f70c2b80db4ea5997d66ea8.zip
op-kernel-dev-812e7a6a43fc34bc8f70c2b80db4ea5997d66ea8.tar.gz
ocfs2: log the actual return value of ocfs2_file_aio_write()
in ocfs2_file_aio_write(), log_exit() could don't log the value which is really returned. this patch fixes it. Signed-off-by: Wengang Wang <wen.gang.wang@oracle.com> Signed-off-by: Joel Becker <joel.becker@oracle.com>
Diffstat (limited to 'fs/ocfs2/file.c')
-rw-r--r--fs/ocfs2/file.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/ocfs2/file.c b/fs/ocfs2/file.c
index 62442e4..a49fa44 100644
--- a/fs/ocfs2/file.c
+++ b/fs/ocfs2/file.c
@@ -1918,8 +1918,10 @@ out_sems:
mutex_unlock(&inode->i_mutex);
+ if (written)
+ ret = written;
mlog_exit(ret);
- return written ? written : ret;
+ return ret;
}
static int ocfs2_splice_to_file(struct pipe_inode_info *pipe,
OpenPOWER on IntegriCloud