Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 67f9eced authored by Will McVicker's avatar Will McVicker Committed by Will Mcvicker
Browse files

ANDROID: fs: export vfs_{read|write}



Needed for f_mtp.ko driver.

Signed-off-by: default avatarWill McVicker <willmcvicker@google.com>
Bug: 160113355
Change-Id: I3a2711827b3bc87cc70c8ce80510bee70e6e19b3
parent 41222a85
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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)
{