projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
17ae26b
)
ocfs2: log the actual return value of ocfs2_file_aio_write()
author
Wengang Wang
<wen.gang.wang@oracle.com>
Fri, 10 Jul 2009 05:26:04 +0000
(13:26 +0800)
committer
Joel Becker
<joel.becker@oracle.com>
Fri, 10 Jul 2009 23:53:52 +0000
(16:53 -0700)
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>
fs/ocfs2/file.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/ocfs2/file.c
b/fs/ocfs2/file.c
index 62442e413a001cfbe57607c43e06d408418cf13e..a49fa44aea1f33c982bcd3dd7203ed702fb66652 100644
(file)
--- 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,