diff options
Diffstat (limited to 'fs/dax.c')
-rw-r--r-- | fs/dax.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -244,7 +244,6 @@ static ssize_t dax_io(struct inode *inode, struct iov_iter *iter, | |||
244 | * @iocb: The control block for this I/O | 244 | * @iocb: The control block for this I/O |
245 | * @inode: The file which the I/O is directed at | 245 | * @inode: The file which the I/O is directed at |
246 | * @iter: The addresses to do I/O from or to | 246 | * @iter: The addresses to do I/O from or to |
247 | * @pos: The file offset where the I/O starts | ||
248 | * @get_block: The filesystem method used to translate file offsets to blocks | 247 | * @get_block: The filesystem method used to translate file offsets to blocks |
249 | * @end_io: A filesystem callback for I/O completion | 248 | * @end_io: A filesystem callback for I/O completion |
250 | * @flags: See below | 249 | * @flags: See below |
@@ -257,11 +256,12 @@ static ssize_t dax_io(struct inode *inode, struct iov_iter *iter, | |||
257 | * is in progress. | 256 | * is in progress. |
258 | */ | 257 | */ |
259 | ssize_t dax_do_io(struct kiocb *iocb, struct inode *inode, | 258 | ssize_t dax_do_io(struct kiocb *iocb, struct inode *inode, |
260 | struct iov_iter *iter, loff_t pos, get_block_t get_block, | 259 | struct iov_iter *iter, get_block_t get_block, |
261 | dio_iodone_t end_io, int flags) | 260 | dio_iodone_t end_io, int flags) |
262 | { | 261 | { |
263 | struct buffer_head bh; | 262 | struct buffer_head bh; |
264 | ssize_t retval = -EINVAL; | 263 | ssize_t retval = -EINVAL; |
264 | loff_t pos = iocb->ki_pos; | ||
265 | loff_t end = pos + iov_iter_count(iter); | 265 | loff_t end = pos + iov_iter_count(iter); |
266 | 266 | ||
267 | memset(&bh, 0, sizeof(bh)); | 267 | memset(&bh, 0, sizeof(bh)); |