Lines Matching refs:iocb
157 nfs_file_read(struct kiocb *iocb, struct iov_iter *to) in nfs_file_read() argument
159 struct inode *inode = file_inode(iocb->ki_filp); in nfs_file_read()
162 if (iocb->ki_flags & IOCB_DIRECT) in nfs_file_read()
163 return nfs_file_direct_read(iocb, to, false); in nfs_file_read()
166 iocb->ki_filp, in nfs_file_read()
167 iov_iter_count(to), (unsigned long) iocb->ki_pos); in nfs_file_read()
170 result = nfs_revalidate_mapping(inode, iocb->ki_filp->f_mapping); in nfs_file_read()
172 result = generic_file_read_iter(iocb, to); in nfs_file_read()
637 ssize_t nfs_file_write(struct kiocb *iocb, struct iov_iter *from) in nfs_file_write() argument
639 struct file *file = iocb->ki_filp; in nfs_file_write()
650 if (iocb->ki_flags & IOCB_DIRECT) in nfs_file_write()
651 return nfs_file_direct_write(iocb, from, false); in nfs_file_write()
654 file, iov_iter_count(from), (long long) iocb->ki_pos); in nfs_file_write()
661 if (iocb->ki_flags & IOCB_APPEND || iocb->ki_pos > i_size_read(inode)) { in nfs_file_write()
671 result = generic_write_checks(iocb, from); in nfs_file_write()
673 result = generic_perform_write(iocb, from); in nfs_file_write()
683 iocb->ki_pos - written, in nfs_file_write()
684 iocb->ki_pos - 1); in nfs_file_write()
690 iocb->ki_pos - written, in nfs_file_write()
691 iocb->ki_pos - 1); in nfs_file_write()
693 result = generic_write_sync(iocb, written); in nfs_file_write()