vvp_io_fini(env, ios);
}
-#ifdef HAVE_FILE_READV
-static ssize_t lustre_generic_file_read(struct file *file,
- struct ccc_io *vio, loff_t *ppos)
-{
- return generic_file_readv(file, vio->cui_iov, vio->cui_nrsegs, ppos);
-}
-
-static ssize_t lustre_generic_file_write(struct file *file,
- struct ccc_io *vio, loff_t *ppos)
-{
- return generic_file_writev(file, vio->cui_iov, vio->cui_nrsegs, ppos);
-}
-#else
static ssize_t lustre_generic_file_read(struct file *file,
struct ccc_io *vio, loff_t *ppos)
{
return generic_file_aio_write(vio->cui_iocb, vio->cui_iov,
vio->cui_nrsegs, *ppos);
}
-#endif
static int vvp_io_read_start(const struct lu_env *env,
const struct cl_io_slice *ios)
* out-of-order writes.
*/
pos = io->u.ci_wr.wr.crw_pos = i_size_read(inode);
-#ifndef HAVE_FILE_WRITEV
cio->cui_iocb->ki_pos = pos;
-#endif
}
CDEBUG(D_VFSTRACE, "write: [%lli, %lli)\n", pos, pos + (long long)cnt);