aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/fs.h
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2014-03-05 01:33:16 -0500
committerAl Viro <viro@zeniv.linux.org.uk>2014-05-06 17:32:46 -0400
commit31b140398ce56ab41646eda7f02bcb78d6a4c916 (patch)
tree1cc4be44c5f94f9fe1829e5c53267f3ce9bad309 /include/linux/fs.h
parenta6cbcd4a4a85e2fdb0b3344b88df2e8b3d526b9e (diff)
switch {__,}blockdev_direct_IO() to iov_iter
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r--include/linux/fs.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index 399a338c92b5..946a9484844f 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -2474,16 +2474,16 @@ enum {
2474void dio_end_io(struct bio *bio, int error); 2474void dio_end_io(struct bio *bio, int error);
2475 2475
2476ssize_t __blockdev_direct_IO(int rw, struct kiocb *iocb, struct inode *inode, 2476ssize_t __blockdev_direct_IO(int rw, struct kiocb *iocb, struct inode *inode,
2477 struct block_device *bdev, const struct iovec *iov, loff_t offset, 2477 struct block_device *bdev, struct iov_iter *iter, loff_t offset,
2478 unsigned long nr_segs, get_block_t get_block, dio_iodone_t end_io, 2478 get_block_t get_block, dio_iodone_t end_io,
2479 dio_submit_t submit_io, int flags); 2479 dio_submit_t submit_io, int flags);
2480 2480
2481static inline ssize_t blockdev_direct_IO(int rw, struct kiocb *iocb, 2481static inline ssize_t blockdev_direct_IO(int rw, struct kiocb *iocb,
2482 struct inode *inode, const struct iovec *iov, loff_t offset, 2482 struct inode *inode, struct iov_iter *iter, loff_t offset,
2483 unsigned long nr_segs, get_block_t get_block) 2483 get_block_t get_block)
2484{ 2484{
2485 return __blockdev_direct_IO(rw, iocb, inode, inode->i_sb->s_bdev, iov, 2485 return __blockdev_direct_IO(rw, iocb, inode, inode->i_sb->s_bdev, iter,
2486 offset, nr_segs, get_block, NULL, NULL, 2486 offset, get_block, NULL, NULL,
2487 DIO_LOCKING | DIO_SKIP_HOLES); 2487 DIO_LOCKING | DIO_SKIP_HOLES);
2488} 2488}
2489#endif 2489#endif