diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2014-03-05 01:33:16 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2014-05-06 17:32:46 -0400 |
commit | 31b140398ce56ab41646eda7f02bcb78d6a4c916 (patch) | |
tree | 1cc4be44c5f94f9fe1829e5c53267f3ce9bad309 /fs/ext2/inode.c | |
parent | a6cbcd4a4a85e2fdb0b3344b88df2e8b3d526b9e (diff) |
switch {__,}blockdev_direct_IO() to iov_iter
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/ext2/inode.c')
-rw-r--r-- | fs/ext2/inode.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/ext2/inode.c b/fs/ext2/inode.c index 116e809aa7cb..36d35c36311d 100644 --- a/fs/ext2/inode.c +++ b/fs/ext2/inode.c | |||
@@ -859,8 +859,7 @@ ext2_direct_IO(int rw, struct kiocb *iocb, struct iov_iter *iter, | |||
859 | size_t count = iov_iter_count(iter); | 859 | size_t count = iov_iter_count(iter); |
860 | ssize_t ret; | 860 | ssize_t ret; |
861 | 861 | ||
862 | ret = blockdev_direct_IO(rw, iocb, inode, iter->iov, offset, | 862 | ret = blockdev_direct_IO(rw, iocb, inode, iter, offset, ext2_get_block); |
863 | iter->nr_segs, ext2_get_block); | ||
864 | if (ret < 0 && (rw & WRITE)) | 863 | if (ret < 0 && (rw & WRITE)) |
865 | ext2_write_failed(mapping, offset + count); | 864 | ext2_write_failed(mapping, offset + count); |
866 | return ret; | 865 | return ret; |