diff options
Diffstat (limited to 'mm/filemap.c')
-rw-r--r-- | mm/filemap.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/mm/filemap.c b/mm/filemap.c index e7108c31346d..cb36db9f4107 100644 --- a/mm/filemap.c +++ b/mm/filemap.c | |||
@@ -1853,8 +1853,7 @@ generic_file_read_iter(struct kiocb *iocb, struct iov_iter *iter) | |||
1853 | iocb->ki_pos + count - 1); | 1853 | iocb->ki_pos + count - 1); |
1854 | if (!retval) { | 1854 | if (!retval) { |
1855 | struct iov_iter data = *iter; | 1855 | struct iov_iter data = *iter; |
1856 | retval = mapping->a_ops->direct_IO(iocb, &data, | 1856 | retval = mapping->a_ops->direct_IO(iocb, &data); |
1857 | iocb->ki_pos); | ||
1858 | } | 1857 | } |
1859 | 1858 | ||
1860 | if (retval > 0) { | 1859 | if (retval > 0) { |
@@ -2538,7 +2537,7 @@ generic_file_direct_write(struct kiocb *iocb, struct iov_iter *from) | |||
2538 | } | 2537 | } |
2539 | 2538 | ||
2540 | data = *from; | 2539 | data = *from; |
2541 | written = mapping->a_ops->direct_IO(iocb, &data, pos); | 2540 | written = mapping->a_ops->direct_IO(iocb, &data); |
2542 | 2541 | ||
2543 | /* | 2542 | /* |
2544 | * Finally, try again to invalidate clean pages which might have been | 2543 | * Finally, try again to invalidate clean pages which might have been |