switch {__,}blockdev_direct_IO() to iov_iter

Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
Al Viro 2014-03-05 01:33:16 -05:00
commit 31b140398c
19 changed files with 49 additions and 60 deletions

View file

@ -859,8 +859,7 @@ ext2_direct_IO(int rw, struct kiocb *iocb, struct iov_iter *iter,
size_t count = iov_iter_count(iter);
ssize_t ret;
ret = blockdev_direct_IO(rw, iocb, inode, iter->iov, offset,
iter->nr_segs, ext2_get_block);
ret = blockdev_direct_IO(rw, iocb, inode, iter, offset, ext2_get_block);
if (ret < 0 && (rw & WRITE))
ext2_write_failed(mapping, offset + count);
return ret;