aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2017-09-01 11:39:24 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2017-09-04 19:05:16 -0400
commitbd8df82be66698042d11e7919e244c8d72b042ca (patch)
treeaa1afd95527c513a618791524aeefd51d10674af
parenteb031849d52e61d24ba54e9d27553189ff328174 (diff)
fs: unexport vfs_read and vfs_write
No modular users left. Given that they take user pointers there is no good reason to export it to drivers to start with. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r--fs/read_write.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/read_write.c b/fs/read_write.c
index 49450c642298..f5cfce243cef 100644
--- a/fs/read_write.c
+++ b/fs/read_write.c
@@ -454,8 +454,6 @@ ssize_t vfs_read(struct file *file, char __user *buf, size_t count, loff_t *pos)
454 return ret; 454 return ret;
455} 455}
456 456
457EXPORT_SYMBOL(vfs_read);
458
459static ssize_t new_sync_write(struct file *filp, const char __user *buf, size_t len, loff_t *ppos) 457static ssize_t new_sync_write(struct file *filp, const char __user *buf, size_t len, loff_t *ppos)
460{ 458{
461 struct iovec iov = { .iov_base = (void __user *)buf, .iov_len = len }; 459 struct iovec iov = { .iov_base = (void __user *)buf, .iov_len = len };
@@ -554,8 +552,6 @@ ssize_t vfs_write(struct file *file, const char __user *buf, size_t count, loff_
554 return ret; 552 return ret;
555} 553}
556 554
557EXPORT_SYMBOL(vfs_write);
558
559static inline loff_t file_pos_read(struct file *file) 555static inline loff_t file_pos_read(struct file *file)
560{ 556{
561 return file->f_pos; 557 return file->f_pos;