Lines Matching refs:iov
325 struct iovec *iov; in fd_do_rw() local
330 iov = kzalloc(sizeof(struct iovec) * sgl_nents, GFP_KERNEL); in fd_do_rw()
331 if (!iov) { in fd_do_rw()
337 iov[i].iov_len = sg->length; in fd_do_rw()
338 iov[i].iov_base = kmap(sg_page(sg)) + sg->offset; in fd_do_rw()
345 ret = vfs_writev(fd, &iov[0], sgl_nents, &pos); in fd_do_rw()
347 ret = vfs_readv(fd, &iov[0], sgl_nents, &pos); in fd_do_rw()
354 kfree(iov); in fd_do_rw()
476 struct iovec *iov; in fd_execute_write_same() local
505 iov = vzalloc(sizeof(struct iovec) * iov_num); in fd_execute_write_same()
506 if (!iov) { in fd_execute_write_same()
516 iov[i].iov_base = buf; in fd_execute_write_same()
517 iov[i].iov_len = min_t(unsigned int, len_tmp, PAGE_SIZE); in fd_execute_write_same()
518 len_tmp -= iov[i].iov_len; in fd_execute_write_same()
523 rc = vfs_writev(f, &iov[0], iov_num, &pos); in fd_execute_write_same()
526 vfree(iov); in fd_execute_write_same()