]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/zsmalloc: use memcpy_from/to_page whereever possible
authorPintu Kumar <quic_pintu@quicinc.com>
Thu, 10 Oct 2024 17:51:43 +0000 (23:21 +0530)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 7 Nov 2024 22:38:07 +0000 (14:38 -0800)
commite664c2cd98cbf5e6fcc3ee92b5f3fc8f7f35e11e
treeafd779b4df3bcaf0ccf09dab4da1d443d59d0d15
parent91d0ec834786a4c9e1e0c55f0fffc8c82cd66cd7
mm/zsmalloc: use memcpy_from/to_page whereever possible

As part of "zsmalloc: replace kmap_atomic with kmap_local_page" [1] we
replaced kmap/kunmap_atomic() with kmap_local_page()/kunmap_local().

But later it was found that some of the code could be replaced with
already available apis in highmem.h, such as
memcpy_from_page()/memcpy_to_page().

Also, update the comments with correct api naming.

[1] https://lkml.kernel.org/r/20241001175358.12970-1-quic_pintu@quicinc.com

Link: https://lkml.kernel.org/r/20241010175143.27262-1-quic_pintu@quicinc.com
Signed-off-by: Pintu Kumar <quic_pintu@quicinc.com>
Suggested-by: Matthew Wilcox <willy@infradead.org>
Suggested-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Cc: Joe Perches <joe@perches.com>
Cc: Minchan Kim <minchan@kernel.org>
Cc: Pintu Agarwal <pintu.ping@gmail.com>
Cc: Shuah Khan <skhan@linuxfoundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/zsmalloc.c