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/page_io.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/page_io.c')
-rw-r--r-- | mm/page_io.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/mm/page_io.c b/mm/page_io.c index a96c8562d835..6424869e275e 100644 --- a/mm/page_io.c +++ b/mm/page_io.c | |||
@@ -277,9 +277,7 @@ int __swap_writepage(struct page *page, struct writeback_control *wbc, | |||
277 | 277 | ||
278 | set_page_writeback(page); | 278 | set_page_writeback(page); |
279 | unlock_page(page); | 279 | unlock_page(page); |
280 | ret = mapping->a_ops->direct_IO(ITER_BVEC | WRITE, | 280 | ret = mapping->a_ops->direct_IO(&kiocb, &from, kiocb.ki_pos); |
281 | &kiocb, &from, | ||
282 | kiocb.ki_pos); | ||
283 | if (ret == PAGE_SIZE) { | 281 | if (ret == PAGE_SIZE) { |
284 | count_vm_event(PSWPOUT); | 282 | count_vm_event(PSWPOUT); |
285 | ret = 0; | 283 | ret = 0; |