iov_iter: replace iov_iter_copy_from_user_atomic() with iterator-advancing variant
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 30 Apr 2021 14:26:41 +0000 (10:26 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 10 Jun 2021 15:45:14 +0000 (11:45 -0400)
commitf0b65f39ac505e8f1dcdaa165aa7b8c0bd6fd454
tree05ad20f84ee097a534132fa9b2df9feae6d4a7d2
parente4f8df86798aea60aff6cfff40252b709431f850
iov_iter: replace iov_iter_copy_from_user_atomic() with iterator-advancing variant

Replacement is called copy_page_from_iter_atomic(); unlike the old primitive the
callers do *not* need to do iov_iter_advance() after it.  In case when they end
up consuming less than they'd been given they need to do iov_iter_revert() on
everything they had not consumed.  That, however, needs to be done only on slow
paths.

All in-tree callers converted.  And that kills the last user of iterate_all_kinds()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Documentation/filesystems/porting.rst
fs/btrfs/file.c
fs/fuse/file.c
fs/iomap/buffered-io.c
fs/ntfs/file.c
include/linux/uio.h
lib/iov_iter.c
mm/filemap.c