Lines Matching refs:from
185 ext4_unaligned_io(struct inode *inode, struct iov_iter *from, loff_t pos) in ext4_unaligned_io() argument
190 if ((pos | iov_iter_alignment(from)) & blockmask) in ext4_unaligned_io()
229 struct iov_iter *from) in ext4_generic_write_checks() argument
237 ret = generic_write_checks(iocb, from); in ext4_generic_write_checks()
250 iov_iter_truncate(from, sbi->s_bitmap_maxbytes - iocb->ki_pos); in ext4_generic_write_checks()
253 return iov_iter_count(from); in ext4_generic_write_checks()
256 static ssize_t ext4_write_checks(struct kiocb *iocb, struct iov_iter *from) in ext4_write_checks() argument
260 count = ext4_generic_write_checks(iocb, from); in ext4_write_checks()
271 struct iov_iter *from) in ext4_buffered_write_iter() argument
280 ret = ext4_write_checks(iocb, from); in ext4_buffered_write_iter()
285 ret = generic_perform_write(iocb, from); in ext4_buffered_write_iter()
407 static ssize_t ext4_dio_write_checks(struct kiocb *iocb, struct iov_iter *from, in ext4_dio_write_checks() argument
417 ret = ext4_generic_write_checks(iocb, from); in ext4_dio_write_checks()
456 static ssize_t ext4_dio_write_iter(struct kiocb *iocb, struct iov_iter *from) in ext4_dio_write_iter() argument
462 size_t count = iov_iter_count(from); in ext4_dio_write_iter()
471 if (ext4_unaligned_io(inode, from, offset)) { in ext4_dio_write_iter()
499 if (!ext4_should_use_dio(iocb, from)) { in ext4_dio_write_iter()
504 return ext4_buffered_write_iter(iocb, from); in ext4_dio_write_iter()
507 ret = ext4_dio_write_checks(iocb, from, &ilock_shared, &extend); in ext4_dio_write_iter()
557 ret = iomap_dio_rw(iocb, from, iomap_ops, &ext4_dio_write_ops, in ext4_dio_write_iter()
579 if (ret >= 0 && iov_iter_count(from)) { in ext4_dio_write_iter()
584 err = ext4_buffered_write_iter(iocb, from); in ext4_dio_write_iter()
610 ext4_dax_write_iter(struct kiocb *iocb, struct iov_iter *from) in ext4_dax_write_iter() argument
626 ret = ext4_write_checks(iocb, from); in ext4_dax_write_iter()
631 count = iov_iter_count(from); in ext4_dax_write_iter()
650 ret = dax_iomap_rw(iocb, from, &ext4_iomap_ops); in ext4_dax_write_iter()
665 ext4_file_write_iter(struct kiocb *iocb, struct iov_iter *from) in ext4_file_write_iter() argument
674 return ext4_dax_write_iter(iocb, from); in ext4_file_write_iter()
677 return ext4_dio_write_iter(iocb, from); in ext4_file_write_iter()
679 return ext4_buffered_write_iter(iocb, from); in ext4_file_write_iter()