teach copy_page_to_iter() to handle compound pages
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 30 Apr 2021 00:42:25 +0000 (20:42 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 3 Jun 2021 14:36:50 +0000 (10:36 -0400)
commit08aa64796016cb47b2ef3d0924653b4d944b0d65
treeb6409c65e15b8cce39dc273f9d3a21c88437c3b7
parent66cd071a1f839b4834d45aa7dde622151041b1a0
teach copy_page_to_iter() to handle compound pages

In situation when copy_page_to_iter() got a compound page the current
code would only work on systems with no CONFIG_HIGHMEM.  It *is* the majority
of real-world setups, or we would've drown in bug reports by now.  Still needs
fixing.

Current variant works for solitary page; rename that to
__copy_page_to_iter() and turn the handling of compound pages into a loop over
subpages.

Cc: stable@vger.kernel.org
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
lib/iov_iter.c