summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2017-09-24 14:03:29 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2017-10-11 17:23:43 -0400
commitfaea13297ea739f94913d56d7b865134b4fc8726 (patch)
tree0420fe89fa4b2f6edfccdf60d7a42538e3e710d1 /fs
parent0e5b935d43f385ab23d2e38e7134b1abb0e7907e (diff)
downloadlinux-faea13297ea739f94913d56d7b865134b4fc8726.tar.bz2
kill iov_shorten()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs')
-rw-r--r--fs/read_write.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/fs/read_write.c b/fs/read_write.c
index f0d4b16873e8..b8bf2cb3298a 100644
--- a/fs/read_write.c
+++ b/fs/read_write.c
@@ -634,27 +634,6 @@ SYSCALL_DEFINE4(pwrite64, unsigned int, fd, const char __user *, buf,
return ret;
}
-/*
- * Reduce an iovec's length in-place. Return the resulting number of segments
- */
-unsigned long iov_shorten(struct iovec *iov, unsigned long nr_segs, size_t to)
-{
- unsigned long seg = 0;
- size_t len = 0;
-
- while (seg < nr_segs) {
- seg++;
- if (len + iov->iov_len >= to) {
- iov->iov_len = to - len;
- break;
- }
- len += iov->iov_len;
- iov++;
- }
- return seg;
-}
-EXPORT_SYMBOL(iov_shorten);
-
static ssize_t do_iter_readv_writev(struct file *filp, struct iov_iter *iter,
loff_t *ppos, int type, rwf_t flags)
{