diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/fs.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index 2fe920774abf..824453be9fee 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -2418,12 +2418,11 @@ ssize_t __blockdev_direct_IO(int rw, struct kiocb *iocb, struct inode *inode, | |||
2418 | dio_submit_t submit_io, int flags); | 2418 | dio_submit_t submit_io, int flags); |
2419 | 2419 | ||
2420 | static inline ssize_t blockdev_direct_IO(int rw, struct kiocb *iocb, | 2420 | static inline ssize_t blockdev_direct_IO(int rw, struct kiocb *iocb, |
2421 | struct inode *inode, struct block_device *bdev, const struct iovec *iov, | 2421 | struct inode *inode, const struct iovec *iov, loff_t offset, |
2422 | loff_t offset, unsigned long nr_segs, get_block_t get_block, | 2422 | unsigned long nr_segs, get_block_t get_block) |
2423 | dio_iodone_t end_io) | ||
2424 | { | 2423 | { |
2425 | return __blockdev_direct_IO(rw, iocb, inode, bdev, iov, offset, | 2424 | return __blockdev_direct_IO(rw, iocb, inode, inode->i_sb->s_bdev, iov, |
2426 | nr_segs, get_block, end_io, NULL, | 2425 | offset, nr_segs, get_block, NULL, NULL, |
2427 | DIO_LOCKING | DIO_SKIP_HOLES); | 2426 | DIO_LOCKING | DIO_SKIP_HOLES); |
2428 | } | 2427 | } |
2429 | #endif | 2428 | #endif |