mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
fs/direct-io.c: fix truncation error in dio_complete() return
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]>
This commit is contained in:
parent
2473238eac
commit
cd1c584f38
1 changed files with 1 additions and 1 deletions
|
|
@ -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, int 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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue