summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPintu Kumar <quic_pintu@quicinc.com>2024-10-10 19:51:43 +0200
committerAndrew Morton <akpm@linux-foundation.org>2024-11-07 23:38:07 +0100
commite664c2cd98cbf5e6fcc3ee92b5f3fc8f7f35e11e (patch)
treeafd779b4df3bcaf0ccf09dab4da1d443d59d0d15 /include
parentzsmalloc: replace kmap_atomic with kmap_local_page (diff)
downloadlinux-e664c2cd98cbf5e6fcc3ee92b5f3fc8f7f35e11e.tar.xz
linux-e664c2cd98cbf5e6fcc3ee92b5f3fc8f7f35e11e.zip
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>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions