]> www.infradead.org Git - users/jedix/linux-maple.git/commit
highmem: Add memcpy_folio()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 31 Mar 2025 20:11:11 +0000 (21:11 +0100)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 28 Apr 2025 15:26:33 +0000 (15:26 +0000)
commit1313057c369bb4da11bb1f8dffb570ac7b44a4d4
tree2b48bf30478fd2a122d6a599e6f655142f25d4a2
parent48b68943053af00d0c3247eaab8f83bc17d26632
highmem: Add memcpy_folio()

The folio equivalent of memcpy_page().  It should correctly and
efficiently manage large folios:

 - If one, neither or both is highmem
 - If (either or both) offset+len crosses a page boundary
 - If the two offsets are congruent or not

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
include/linux/highmem.h