diff options
author | Badari Pulavarty <pbadari@us.ibm.com> | 2006-10-01 02:28:46 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-01 03:39:28 -0400 |
commit | 027445c37282bc1ed26add45e573ad2d3e4860a5 (patch) | |
tree | 93eab101a938ffebaea64703033c8649df4d73f0 /include/linux/fs.h | |
parent | 9ea0f9499d15c49df23e7aac4332d830c40e12d0 (diff) |
[PATCH] Vectorize aio_read/aio_write fileop methods
This patch vectorizes aio_read() and aio_write() methods to prepare for
collapsing all aio & vectored operations into one interface - which is
aio_read()/aio_write().
Signed-off-by: Badari Pulavarty <pbadari@us.ibm.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Cc: Michael Holzheu <HOLZHEU@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r-- | include/linux/fs.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index 5baf3a153403..257bae16f545 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -1097,9 +1097,9 @@ struct file_operations { | |||
1097 | struct module *owner; | 1097 | struct module *owner; |
1098 | loff_t (*llseek) (struct file *, loff_t, int); | 1098 | loff_t (*llseek) (struct file *, loff_t, int); |
1099 | ssize_t (*read) (struct file *, char __user *, size_t, loff_t *); | 1099 | ssize_t (*read) (struct file *, char __user *, size_t, loff_t *); |
1100 | ssize_t (*aio_read) (struct kiocb *, char __user *, size_t, loff_t); | ||
1101 | ssize_t (*write) (struct file *, const char __user *, size_t, loff_t *); | 1100 | ssize_t (*write) (struct file *, const char __user *, size_t, loff_t *); |
1102 | ssize_t (*aio_write) (struct kiocb *, const char __user *, size_t, loff_t); | 1101 | ssize_t (*aio_read) (struct kiocb *, const struct iovec *, unsigned long, loff_t); |
1102 | ssize_t (*aio_write) (struct kiocb *, const struct iovec *, unsigned long, loff_t); | ||
1103 | int (*readdir) (struct file *, void *, filldir_t); | 1103 | int (*readdir) (struct file *, void *, filldir_t); |
1104 | unsigned int (*poll) (struct file *, struct poll_table_struct *); | 1104 | unsigned int (*poll) (struct file *, struct poll_table_struct *); |
1105 | int (*ioctl) (struct inode *, struct file *, unsigned int, unsigned long); | 1105 | int (*ioctl) (struct inode *, struct file *, unsigned int, unsigned long); |
@@ -1704,11 +1704,11 @@ extern int file_send_actor(read_descriptor_t * desc, struct page *page, unsigned | |||
1704 | extern ssize_t generic_file_read(struct file *, char __user *, size_t, loff_t *); | 1704 | extern ssize_t generic_file_read(struct file *, char __user *, size_t, loff_t *); |
1705 | int generic_write_checks(struct file *file, loff_t *pos, size_t *count, int isblk); | 1705 | int generic_write_checks(struct file *file, loff_t *pos, size_t *count, int isblk); |
1706 | extern ssize_t generic_file_write(struct file *, const char __user *, size_t, loff_t *); | 1706 | extern ssize_t generic_file_write(struct file *, const char __user *, size_t, loff_t *); |
1707 | extern ssize_t generic_file_aio_read(struct kiocb *, char __user *, size_t, loff_t); | 1707 | extern ssize_t generic_file_aio_read(struct kiocb *, const struct iovec *, unsigned long, loff_t); |
1708 | extern ssize_t __generic_file_aio_read(struct kiocb *, const struct iovec *, unsigned long, loff_t *); | 1708 | extern ssize_t __generic_file_aio_read(struct kiocb *, const struct iovec *, unsigned long, loff_t *); |
1709 | extern ssize_t generic_file_aio_write(struct kiocb *, const char __user *, size_t, loff_t); | 1709 | extern ssize_t generic_file_aio_write(struct kiocb *, const struct iovec *, unsigned long, loff_t); |
1710 | extern ssize_t generic_file_aio_write_nolock(struct kiocb *, const struct iovec *, | 1710 | extern ssize_t generic_file_aio_write_nolock(struct kiocb *, const struct iovec *, |
1711 | unsigned long, loff_t *); | 1711 | unsigned long, loff_t); |
1712 | extern ssize_t generic_file_direct_write(struct kiocb *, const struct iovec *, | 1712 | extern ssize_t generic_file_direct_write(struct kiocb *, const struct iovec *, |
1713 | unsigned long *, loff_t, loff_t *, size_t, size_t); | 1713 | unsigned long *, loff_t, loff_t *, size_t, size_t); |
1714 | extern ssize_t generic_file_buffered_write(struct kiocb *, const struct iovec *, | 1714 | extern ssize_t generic_file_buffered_write(struct kiocb *, const struct iovec *, |