• Home
  • Raw
  • Download

Lines Matching refs:iocb

288 	struct kiocb		*iocb,  in xfs_file_read_iter()  argument
291 struct file *file = iocb->ki_filp; in xfs_file_read_iter()
299 loff_t pos = iocb->ki_pos; in xfs_file_read_iter()
303 if (unlikely(iocb->ki_flags & IOCB_DIRECT)) in xfs_file_read_iter()
377 ret = generic_file_read_iter(iocb, to); in xfs_file_read_iter()
581 struct kiocb *iocb, in xfs_file_aio_write_checks() argument
585 struct file *file = iocb->ki_filp; in xfs_file_aio_write_checks()
593 error = generic_write_checks(iocb, from); in xfs_file_aio_write_checks()
624 if (iocb->ki_pos > i_size_read(inode)) { in xfs_file_aio_write_checks()
647 error = xfs_zero_eof(ip, iocb->ki_pos, i_size_read(inode), &zero); in xfs_file_aio_write_checks()
702 struct kiocb *iocb, in xfs_file_dio_aio_write() argument
705 struct file *file = iocb->ki_filp; in xfs_file_dio_aio_write()
714 loff_t pos = iocb->ki_pos; in xfs_file_dio_aio_write()
752 ret = xfs_file_aio_write_checks(iocb, from, &iolock); in xfs_file_dio_aio_write()
756 pos = iocb->ki_pos; in xfs_file_dio_aio_write()
787 trace_xfs_file_direct_write(ip, count, iocb->ki_pos, 0); in xfs_file_dio_aio_write()
790 ret = mapping->a_ops->direct_IO(iocb, &data, pos); in xfs_file_dio_aio_write()
802 iocb->ki_pos = pos; in xfs_file_dio_aio_write()
817 struct kiocb *iocb, in xfs_file_buffered_aio_write() argument
820 struct file *file = iocb->ki_filp; in xfs_file_buffered_aio_write()
830 ret = xfs_file_aio_write_checks(iocb, from, &iolock); in xfs_file_buffered_aio_write()
839 iocb->ki_pos, 0); in xfs_file_buffered_aio_write()
840 ret = generic_perform_write(file, from, iocb->ki_pos); in xfs_file_buffered_aio_write()
842 iocb->ki_pos += ret; in xfs_file_buffered_aio_write()
876 struct kiocb *iocb, in xfs_file_write_iter() argument
879 struct file *file = iocb->ki_filp; in xfs_file_write_iter()
894 if ((iocb->ki_flags & IOCB_DIRECT) || IS_DAX(inode)) in xfs_file_write_iter()
895 ret = xfs_file_dio_aio_write(iocb, from); in xfs_file_write_iter()
897 ret = xfs_file_buffered_aio_write(iocb, from); in xfs_file_write_iter()
905 err = generic_write_sync(file, iocb->ki_pos - ret, ret); in xfs_file_write_iter()