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:
cb49224
)
mm/filemap.c: Use existing variable
author
haiqing.shq
<
[email protected]
>
Fri, 26 Oct 2018 22:07:22 +0000
(15:07 -0700)
committer
Linus Torvalds
<
[email protected]
>
Fri, 26 Oct 2018 23:26:33 +0000
(16:26 -0700)
Use the variable write_len instead of ov_iter_count(from).
Link:
http://lkml.kernel.org/r/
[email protected]
Signed-off-by: haiqing.shq <
[email protected]
>
Reviewed-by: Andrew Morton <
[email protected]
>
Cc: Jan Kara <
[email protected]
>
Cc: Al Viro <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
mm/filemap.c
patch
|
blob
|
history
diff --git
a/mm/filemap.c
b/mm/filemap.c
index 41586009fa4228c91a9988ff1c90a763709b039a..0b8c6de6d9952fb58d67a32c43c167f6520aece9 100644
(file)
--- a/
mm/filemap.c
+++ b/
mm/filemap.c
@@
-3027,7
+3027,7
@@
generic_file_direct_write(struct kiocb *iocb, struct iov_iter *from)
if (iocb->ki_flags & IOCB_NOWAIT) {
/* If there are pages to writeback, return */
if (filemap_range_has_page(inode->i_mapping, pos,
- pos +
iov_iter_count(from)
))
+ pos +
write_len
))
return -EAGAIN;
} else {
written = filemap_write_and_wait_range(mapping, pos,