projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce4f2fd
)
ocfs2_direct_IO_write() misses ocfs2_is_overwrite() error code
author
Norton.Zhu
<
[email protected]
>
Fri, 6 Nov 2015 02:43:52 +0000
(18:43 -0800)
committer
Linus Torvalds
<
[email protected]
>
Fri, 6 Nov 2015 03:34:48 +0000
(19:34 -0800)
If ocfs2_is_overwrite failed, ocfs2_direct_IO_write mays till return
success to the caller.
Signed-off-by: Norton.Zhu <
[email protected]
>
Cc: Mark Fasheh <
[email protected]
>
Cc: Joel Becker <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
fs/ocfs2/aops.c
patch
|
blob
|
history
diff --git
a/fs/ocfs2/aops.c
b/fs/ocfs2/aops.c
index 64b11d90eca688fbce4e81b0e503c0e9ffd44197..f04914cc19a43f1a5bf0c882ee671435c2cd31de 100644
(file)
--- a/
fs/ocfs2/aops.c
+++ b/
fs/ocfs2/aops.c
@@
-864,6
+864,7
@@
static ssize_t ocfs2_direct_IO_write(struct kiocb *iocb,
is_overwrite = ocfs2_is_overwrite(osb, inode, offset);
if (is_overwrite < 0) {
mlog_errno(is_overwrite);
+ ret = is_overwrite;
ocfs2_inode_unlock(inode, 1);
goto clean_orphan;
}