diff options
| author | Christoph Hellwig <hch@infradead.org> | 2002-11-07 07:57:06 -0800 |
|---|---|---|
| committer | Christoph Hellwig <hch@infradead.org> | 2002-11-07 07:57:06 -0800 |
| commit | dae01d336cbaf35b1ce1efca8042c0cab647937b (patch) | |
| tree | 1d688887be0937f35fee8f8e8bd66b1fb96158d7 /include/linux/fs.h | |
| parent | 8aa1cb75c8799520a0734df53ea6940464b0add3 (diff) | |
[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).
Diffstat (limited to 'include/linux/fs.h')
| -rw-r--r-- | include/linux/fs.h | 6 |
1 files changed, 4 insertions, 2 deletions
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 |
