Lines Matching refs:iocb
158 nfs_file_read(struct kiocb *iocb, struct iov_iter *to) in nfs_file_read() argument
160 struct inode *inode = file_inode(iocb->ki_filp); in nfs_file_read()
163 if (iocb->ki_flags & IOCB_DIRECT) in nfs_file_read()
164 return nfs_file_direct_read(iocb, to); in nfs_file_read()
167 iocb->ki_filp, in nfs_file_read()
168 iov_iter_count(to), (unsigned long) iocb->ki_pos); in nfs_file_read()
171 result = nfs_revalidate_mapping(inode, iocb->ki_filp->f_mapping); in nfs_file_read()
173 result = generic_file_read_iter(iocb, to); in nfs_file_read()
605 ssize_t nfs_file_write(struct kiocb *iocb, struct iov_iter *from) in nfs_file_write() argument
607 struct file *file = iocb->ki_filp; in nfs_file_write()
618 if (iocb->ki_flags & IOCB_DIRECT) in nfs_file_write()
619 return nfs_file_direct_write(iocb, from); in nfs_file_write()
622 file, iov_iter_count(from), (long long) iocb->ki_pos); in nfs_file_write()
629 if (iocb->ki_flags & IOCB_APPEND || iocb->ki_pos > i_size_read(inode)) { in nfs_file_write()
639 result = generic_write_checks(iocb, from); in nfs_file_write()
642 result = generic_perform_write(file, from, iocb->ki_pos); in nfs_file_write()
650 iocb->ki_pos += written; in nfs_file_write()
654 iocb->ki_pos - written, in nfs_file_write()
655 iocb->ki_pos - 1); in nfs_file_write()
661 iocb->ki_pos - written, in nfs_file_write()
662 iocb->ki_pos - 1); in nfs_file_write()
666 result = generic_write_sync(iocb, written); in nfs_file_write()