ANDROID: fs: export vfs_{read|write}

Needed for f_mtp.ko driver.

Signed-off-by: Will McVicker <willmcvicker@google.com>
Bug: 160113355
Change-Id: I3a2711827b3bc87cc70c8ce80510bee70e6e19b3
This commit is contained in:
Will McVicker 2020-06-28 22:57:46 -07:00 committed by Will Mcvicker
parent 41222a8582
commit 67f9ecedf1

View File

@ -459,6 +459,7 @@ ssize_t vfs_read(struct file *file, char __user *buf, size_t count, loff_t *pos)
return ret;
}
EXPORT_SYMBOL_GPL(vfs_read);
static ssize_t new_sync_write(struct file *filp, const char __user *buf, size_t len, loff_t *ppos)
{
@ -557,6 +558,7 @@ ssize_t vfs_write(struct file *file, const char __user *buf, size_t count, loff_
return ret;
}
EXPORT_SYMBOL_GPL(vfs_write);
static inline loff_t file_pos_read(struct file *file)
{