Skip to content

Commit bd8df82

Browse files
Christoph HellwigAl Viro
authored andcommitted
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>
1 parent eb03184 commit bd8df82

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

fs/read_write.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -454,8 +454,6 @@ ssize_t vfs_read(struct file *file, char __user *buf, size_t count, loff_t *pos)
454454
return ret;
455455
}
456456

457-
EXPORT_SYMBOL(vfs_read);
458-
459457
static ssize_t new_sync_write(struct file *filp, const char __user *buf, size_t len, loff_t *ppos)
460458
{
461459
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_
554552
return ret;
555553
}
556554

557-
EXPORT_SYMBOL(vfs_write);
558-
559555
static inline loff_t file_pos_read(struct file *file)
560556
{
561557
return file->f_pos;

0 commit comments

Comments
 (0)