Commit 98e222d7 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Stephen Lord

XFS: add synch I/O entry points

Modid: 2.5.x-xfs:slinx:130135a
parent 2b203f6c
...@@ -113,6 +113,32 @@ linvfs_write( ...@@ -113,6 +113,32 @@ linvfs_write(
} }
STATIC ssize_t
linvfs_aio_read(
struct kiocb *iocb,
char *buf,
size_t count,
loff_t pos)
{
struct iovec iov = {buf, count};
return linvfs_readv(iocb->ki_filp, &iov, 1, &iocb->ki_pos);
}
STATIC ssize_t
linvfs_aio_write(
struct kiocb *iocb,
const char *buf,
size_t count,
loff_t pos)
{
struct iovec iov = {(void *)buf, count};
return linvfs_writev(iocb->ki_filp, &iov, 1, &iocb->ki_pos);
}
STATIC int STATIC int
linvfs_open( linvfs_open(
struct inode *inode, struct inode *inode,
...@@ -320,6 +346,8 @@ struct file_operations linvfs_file_operations = { ...@@ -320,6 +346,8 @@ struct file_operations linvfs_file_operations = {
.write = linvfs_write, .write = linvfs_write,
.readv = linvfs_readv, .readv = linvfs_readv,
.writev = linvfs_writev, .writev = linvfs_writev,
.aio_read = linvfs_aio_read,
.aio_write = linvfs_aio_write,
.ioctl = linvfs_ioctl, .ioctl = linvfs_ioctl,
.mmap = linvfs_file_mmap, .mmap = linvfs_file_mmap,
.open = linvfs_open, .open = linvfs_open,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment