From dae01d336cbaf35b1ce1efca8042c0cab647937b Mon Sep 17 00:00:00 2001 From: Christoph Hellwig Date: Thu, 7 Nov 2002 07:57:06 -0800 Subject: [PATCH] read(v)/write(v) fixes Clean up vfs_readv/writev() interface and avoid code duplication. Make kNFSd use the cleaned-up interfaces, and disable the code that accesses the low-level readpage() function of the exported filesystem (not allowed - many filesystems need extra setup, which is why we have a separate ->sendpage() routine for that). --- include/linux/fs.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/linux/fs.h b/include/linux/fs.h index 4e0e4bd005a6..b71df992cad7 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -793,8 +793,10 @@ struct seq_file; extern ssize_t vfs_read(struct file *, char *, size_t, loff_t *); extern ssize_t vfs_write(struct file *, const char *, size_t, loff_t *); -extern ssize_t vfs_readv(struct file *, struct iovec *, int, size_t, loff_t *); -extern ssize_t vfs_writev(struct file *, const struct iovec *, int, size_t, loff_t *); +extern ssize_t vfs_readv(struct file *, const struct iovec *, + unsigned long, loff_t *); +extern ssize_t vfs_writev(struct file *, const struct iovec *, + unsigned long, loff_t *); /* * NOTE: write_inode, delete_inode, clear_inode, put_inode can be called -- cgit v1.2.3