diff options
author | Omar Sandoval <osandov@osandov.com> | 2015-03-16 07:33:53 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2015-04-11 22:29:45 -0400 |
commit | 22c6186ecea0be9eff1c399298ad36e94a59995f (patch) | |
tree | fffc295f7423e9c8f08dcb014d2b76ed546eb215 /mm/filemap.c | |
parent | 6f67376318abea58589ebe6d69dffeabb6f6c26a (diff) |
direct_IO: remove rw from a_ops->direct_IO()
Now that no one is using rw, remove it completely.
Signed-off-by: Omar Sandoval <osandov@osandov.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'mm/filemap.c')
-rw-r--r-- | mm/filemap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/filemap.c b/mm/filemap.c index 876f4e6f3ed6..9920db455f05 100644 --- a/mm/filemap.c +++ b/mm/filemap.c | |||
@@ -1707,7 +1707,7 @@ generic_file_read_iter(struct kiocb *iocb, struct iov_iter *iter) | |||
1707 | pos + count - 1); | 1707 | pos + count - 1); |
1708 | if (!retval) { | 1708 | if (!retval) { |
1709 | struct iov_iter data = *iter; | 1709 | struct iov_iter data = *iter; |
1710 | retval = mapping->a_ops->direct_IO(READ, iocb, &data, pos); | 1710 | retval = mapping->a_ops->direct_IO(iocb, &data, pos); |
1711 | } | 1711 | } |
1712 | 1712 | ||
1713 | if (retval > 0) { | 1713 | if (retval > 0) { |
@@ -2395,7 +2395,7 @@ generic_file_direct_write(struct kiocb *iocb, struct iov_iter *from, loff_t pos) | |||
2395 | } | 2395 | } |
2396 | 2396 | ||
2397 | data = *from; | 2397 | data = *from; |
2398 | written = mapping->a_ops->direct_IO(WRITE, iocb, &data, pos); | 2398 | written = mapping->a_ops->direct_IO(iocb, &data, pos); |
2399 | 2399 | ||
2400 | /* | 2400 | /* |
2401 | * Finally, try again to invalidate clean pages which might have been | 2401 | * Finally, try again to invalidate clean pages which might have been |