Lines Matching refs:iocb
140 int nfs_swap_rw(struct kiocb *iocb, struct iov_iter *iter) in nfs_swap_rw() argument
147 ret = nfs_file_direct_read(iocb, iter, true); in nfs_swap_rw()
149 ret = nfs_file_direct_write(iocb, iter, true); in nfs_swap_rw()
223 if (dreq->iocb) in nfs_direct_wait()
249 if (dreq->iocb) { in nfs_direct_complete()
255 dreq->iocb->ki_complete(dreq->iocb, res); in nfs_direct_complete()
417 ssize_t nfs_file_direct_read(struct kiocb *iocb, struct iov_iter *iter, in nfs_file_direct_read() argument
420 struct file *file = iocb->ki_filp; in nfs_file_direct_read()
430 file, count, (long long) iocb->ki_pos); in nfs_file_direct_read()
445 dreq->io_start = iocb->ki_pos; in nfs_file_direct_read()
446 dreq->ctx = get_nfs_open_context(nfs_file_open_context(iocb->ki_filp)); in nfs_file_direct_read()
454 if (!is_sync_kiocb(iocb)) in nfs_file_direct_read()
455 dreq->iocb = iocb; in nfs_file_direct_read()
464 requested = nfs_direct_read_schedule_iovec(dreq, iter, iocb->ki_pos); in nfs_file_direct_read()
473 iocb->ki_pos += result; in nfs_file_direct_read()
948 ssize_t nfs_file_direct_write(struct kiocb *iocb, struct iov_iter *iter, in nfs_file_direct_write() argument
953 struct file *file = iocb->ki_filp; in nfs_file_direct_write()
961 file, iov_iter_count(iter), (long long) iocb->ki_pos); in nfs_file_direct_write()
967 result = generic_write_checks(iocb, iter); in nfs_file_direct_write()
973 pos = iocb->ki_pos; in nfs_file_direct_write()
986 dreq->ctx = get_nfs_open_context(nfs_file_open_context(iocb->ki_filp)); in nfs_file_direct_write()
994 if (!is_sync_kiocb(iocb)) in nfs_file_direct_write()
995 dreq->iocb = iocb; in nfs_file_direct_write()
1019 iocb->ki_pos = pos + result; in nfs_file_direct_write()
1021 generic_write_sync(iocb, result); in nfs_file_direct_write()