iov_iter: advancing variants of iov_iter_get_pages{,_alloc}()
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 9 Jun 2022 14:28:36 +0000 (10:28 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 9 Aug 2022 02:37:22 +0000 (22:37 -0400)
commit1ef255e257173f4bc44317ef2076e7e0de688fdf
tree700be64ef5aa70a34f6d8158936214e9694e4245
parent3cf42da327f26eb4461864dd64812345b37f4fd9
iov_iter: advancing variants of iov_iter_get_pages{,_alloc}()

Most of the users immediately follow successful iov_iter_get_pages()
with advancing by the amount it had returned.

Provide inline wrappers doing that, convert trivial open-coded
uses of those.

BTW, iov_iter_get_pages() never returns more than it had been asked
to; such checks in cifs ought to be removed someday...

Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
13 files changed:
drivers/vhost/scsi.c
fs/ceph/file.c
fs/cifs/file.c
fs/cifs/misc.c
fs/direct-io.c
fs/fuse/dev.c
fs/fuse/file.c
fs/nfs/direct.c
include/linux/uio.h
net/core/datagram.c
net/core/skmsg.c
net/rds/message.c
net/tls/tls_sw.c