iov_iter: Handle compound highmem pages in copy_page_from_iter_atomic()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 6 Jun 2023 20:43:32 +0000 (16:43 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 24 Jul 2023 22:03:43 +0000 (18:03 -0400)
commit908a1ad89466c1febf20bfe0037b84fc66f8a3f8
treeab3db091a4004915b60ac9eae1d3691f19e2931c
parentf7f9a0c8736d418af8d981000ea68ea43b395da4
iov_iter: Handle compound highmem pages in copy_page_from_iter_atomic()

copy_page_from_iter_atomic() already handles !highmem compound
pages correctly, but if we are passed a highmem compound page,
each base page needs to be mapped & unmapped individually.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Kent Overstreet <kent.overstreet@linux.dev>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Tested-by: Kent Overstreet <kent.overstreet@linux.dev>
lib/iov_iter.c