diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2019-03-12 23:43:42 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-03-12 23:43:42 +0300 |
commit | dbc2fba3fc46084f502aec53183995a632998dcd (patch) | |
tree | a4ee9c95d40c807a133a1542d082f773661869f4 /include | |
parent | 5f739e4a491ab63730ef3b7464171340c689fbff (diff) | |
parent | 6daef95b8c914866a46247232a048447fff97279 (diff) | |
download | linux-dbc2fba3fc46084f502aec53183995a632998dcd.tar.xz |
Merge branch 'work.iov_iter' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Pull iov_iter updates from Al Viro:
"A couple of iov_iter patches - Christoph's crapectomy (the last
remaining user of iov_for_each() went away with lustre, IIRC) and
Eric'c optimization of sanity checks"
* 'work.iov_iter' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
iov_iter: optimize page_copy_sane()
uio: remove the unused iov_for_each macro
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/uio.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/include/linux/uio.h b/include/linux/uio.h index ecf584f6b82d..87477e1640f9 100644 --- a/include/linux/uio.h +++ b/include/linux/uio.h @@ -110,14 +110,6 @@ static inline struct iovec iov_iter_iovec(const struct iov_iter *iter) }; } -#define iov_for_each(iov, iter, start) \ - if (iov_iter_type(start) == ITER_IOVEC || \ - iov_iter_type(start) == ITER_KVEC) \ - for (iter = (start); \ - (iter).count && \ - ((iov = iov_iter_iovec(&(iter))), 1); \ - iov_iter_advance(&(iter), (iov).iov_len)) - size_t iov_iter_copy_from_user_atomic(struct page *page, struct iov_iter *i, unsigned long offset, size_t bytes); void iov_iter_advance(struct iov_iter *i, size_t bytes); |