Lines Matching refs:iocb
353 v9fs_file_read_iter(struct kiocb *iocb, struct iov_iter *to) in v9fs_file_read_iter() argument
355 struct p9_fid *fid = iocb->ki_filp->private_data; in v9fs_file_read_iter()
359 fid->fid, iov_iter_count(to), iocb->ki_pos); in v9fs_file_read_iter()
363 return generic_file_read_iter(iocb, to); in v9fs_file_read_iter()
366 if (iocb->ki_filp->f_flags & O_NONBLOCK) in v9fs_file_read_iter()
367 ret = p9_client_read_once(fid, iocb->ki_pos, to, &err); in v9fs_file_read_iter()
369 ret = p9_client_read(fid, iocb->ki_pos, to, &err); in v9fs_file_read_iter()
373 iocb->ki_pos += ret; in v9fs_file_read_iter()
406 v9fs_file_write_iter(struct kiocb *iocb, struct iov_iter *from) in v9fs_file_write_iter() argument
408 struct file *file = iocb->ki_filp; in v9fs_file_write_iter()
418 return generic_file_write_iter(iocb, from); in v9fs_file_write_iter()
421 retval = generic_write_checks(iocb, from); in v9fs_file_write_iter()
425 origin = iocb->ki_pos; in v9fs_file_write_iter()
426 retval = p9_client_write(file->private_data, iocb->ki_pos, from, &err); in v9fs_file_write_iter()
437 iocb->ki_pos += retval; in v9fs_file_write_iter()
439 if (iocb->ki_pos > i_size) { in v9fs_file_write_iter()
440 inode_add_bytes(inode, iocb->ki_pos - i_size); in v9fs_file_write_iter()
445 v9fs_i_size_write(inode, iocb->ki_pos); in v9fs_file_write_iter()