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:
7a83464
)
ocfs2: fix a typing error in ocfs2_direct_IO_write
author
Joseph Qi
<
[email protected]
>
Tue, 14 Apr 2015 22:43:05 +0000
(15:43 -0700)
committer
Linus Torvalds
<
[email protected]
>
Tue, 14 Apr 2015 23:48:57 +0000
(16:48 -0700)
Only when direct IO succeeds we need consider zeroing out in case of
cluster not aligned.
Signed-off-by: Joseph Qi <
[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 44db1808cdb598df6b91548410b3634480c06c31..0c2848a599c91ad44dd5d307e5a09a677534c4c3 100644
(file)
--- a/
fs/ocfs2/aops.c
+++ b/
fs/ocfs2/aops.c
@@
-771,7
+771,7
@@
static ssize_t ocfs2_direct_IO_write(struct kiocb *iocb,
if (ret < 0)
mlog_errno(ret);
}
- } else if (written
<
0 && append_write && !is_overwrite &&
+ } else if (written
>
0 && append_write && !is_overwrite &&
!cluster_align) {
u32 p_cpos = 0;
u32 v_cpos = ocfs2_bytes_to_clusters(osb->sb, offset);