diff options
author | Christoph Hellwig <hch@lst.de> | 2017-09-01 11:39:25 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2017-09-04 19:05:16 -0400 |
commit | 9725d4cef62229b4ec4c912e0db0761e7d400650 (patch) | |
tree | b579bff628fde85be92e733467709e25a78a33f0 | |
parent | bd8df82be66698042d11e7919e244c8d72b042ca (diff) |
fs: unexport vfs_readv and vfs_writev
We've got no modular users left, and any potential modular user is better
of with iov_iter based variants.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r-- | fs/read_write.c | 4 | ||||
-rw-r--r-- | include/linux/fs.h | 2 |
2 files changed, 1 insertions, 5 deletions
diff --git a/fs/read_write.c b/fs/read_write.c index f5cfce243cef..cbdccaf032c6 100644 --- a/fs/read_write.c +++ b/fs/read_write.c | |||
@@ -982,9 +982,8 @@ ssize_t vfs_readv(struct file *file, const struct iovec __user *vec, | |||
982 | 982 | ||
983 | return ret; | 983 | return ret; |
984 | } | 984 | } |
985 | EXPORT_SYMBOL(vfs_readv); | ||
986 | 985 | ||
987 | ssize_t vfs_writev(struct file *file, const struct iovec __user *vec, | 986 | static ssize_t vfs_writev(struct file *file, const struct iovec __user *vec, |
988 | unsigned long vlen, loff_t *pos, int flags) | 987 | unsigned long vlen, loff_t *pos, int flags) |
989 | { | 988 | { |
990 | struct iovec iovstack[UIO_FASTIOV]; | 989 | struct iovec iovstack[UIO_FASTIOV]; |
@@ -1001,7 +1000,6 @@ ssize_t vfs_writev(struct file *file, const struct iovec __user *vec, | |||
1001 | } | 1000 | } |
1002 | return ret; | 1001 | return ret; |
1003 | } | 1002 | } |
1004 | EXPORT_SYMBOL(vfs_writev); | ||
1005 | 1003 | ||
1006 | static ssize_t do_readv(unsigned long fd, const struct iovec __user *vec, | 1004 | static ssize_t do_readv(unsigned long fd, const struct iovec __user *vec, |
1007 | unsigned long vlen, int flags) | 1005 | unsigned long vlen, int flags) |
diff --git a/include/linux/fs.h b/include/linux/fs.h index f24b821cee8d..355cf02830a0 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -1758,8 +1758,6 @@ extern ssize_t vfs_read(struct file *, char __user *, size_t, loff_t *); | |||
1758 | extern ssize_t vfs_write(struct file *, const char __user *, size_t, loff_t *); | 1758 | extern ssize_t vfs_write(struct file *, const char __user *, size_t, loff_t *); |
1759 | extern ssize_t vfs_readv(struct file *, const struct iovec __user *, | 1759 | extern ssize_t vfs_readv(struct file *, const struct iovec __user *, |
1760 | unsigned long, loff_t *, int); | 1760 | unsigned long, loff_t *, int); |
1761 | extern ssize_t vfs_writev(struct file *, const struct iovec __user *, | ||
1762 | unsigned long, loff_t *, int); | ||
1763 | extern ssize_t vfs_copy_file_range(struct file *, loff_t , struct file *, | 1761 | extern ssize_t vfs_copy_file_range(struct file *, loff_t , struct file *, |
1764 | loff_t, size_t, unsigned int); | 1762 | loff_t, size_t, unsigned int); |
1765 | extern int vfs_clone_file_prep_inodes(struct inode *inode_in, loff_t pos_in, | 1763 | extern int vfs_clone_file_prep_inodes(struct inode *inode_in, loff_t pos_in, |