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:
2473238
)
fs/direct-io.c: fix truncation error in dio_complete() return
author
Edward Shishkin
<
[email protected]
>
Tue, 26 Oct 2010 21:22:28 +0000
(14:22 -0700)
committer
Linus Torvalds
<
[email protected]
>
Tue, 26 Oct 2010 23:52:13 +0000
(16:52 -0700)
Fix up truncation (ssize_t->int). This only matters with >2G
reads/writes, which the kernel doesn't permit.
Signed-off-by: Edward Shishkin <
[email protected]
>
Reviewed-by: Christoph Hellwig <
[email protected]
>
Acked-by: Jeff Moyer <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
fs/direct-io.c
patch
|
blob
|
history
diff --git
a/fs/direct-io.c
b/fs/direct-io.c
index 48d74c7391d13f4f07393c45d19825e937ecbcd1..85882f6ba5f73c66b614a79ad3594a3dab5dc2b0 100644
(file)
--- a/
fs/direct-io.c
+++ b/
fs/direct-io.c
@@
-218,7
+218,7
@@
static struct page *dio_get_page(struct dio *dio)
* filesystems can use it to hold additional state between get_block calls and
* dio_complete.
*/
-static
int dio_complete(struct dio *dio, loff_t offset, in
t ret, bool is_async)
+static
ssize_t dio_complete(struct dio *dio, loff_t offset, ssize_
t ret, bool is_async)
{
ssize_t transferred = 0;